repo.or.cz
/
gecko.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Bug 1857386 [wpt PR 42383] - Update wpt metadata, a=testonly
[gecko.git]
/
netwerk
/
test
/
unit
/
test_cache2-10-evict-direct.js
blob
dc278e17d4f1833eb13a1e3bcf8ee6c24be8b614
1
"use strict";
2
3
function run_test() {
4
do_get_profile();
5
6
asyncOpenCacheEntry(
7
"http://b/",
8
"disk",
9
Ci.nsICacheStorage.OPEN_NORMALLY,
10
null,
11
new OpenCallback(NEW, "b1m", "b1d", function () {
12
asyncOpenCacheEntry(
13
"http://b/",
14
"disk",
15
Ci.nsICacheStorage.OPEN_NORMALLY,
16
null,
17
new OpenCallback(NORMAL, "b1m", "b1d", function (entry) {
18
entry.asyncDoom(
19
new EvictionCallback(true, function () {
20
finish_cache2_test();
21
})
22
);
23
})
24
);
25
})
26
);
27
28
do_test_pending();
29
}