netwerk/test/unit/test_cache2-10b-evict-direct-immediate.js

changeset 1
ca08bd8f51b2
equal deleted inserted replaced
-1:000000000000 0:134a95cfe24a
1 function run_test()
2 {
3 do_get_profile();
4
5 if (!newCacheBackEndUsed()) {
6 do_check_true(true, "This test doesn't run when the old cache back end is used since the behavior is different");
7 return;
8 }
9
10 asyncOpenCacheEntry("http://b/", "disk", Ci.nsICacheStorage.OPEN_NORMALLY, null,
11 new OpenCallback(NEW|DOOMED, "b1m", "b1d", function(entry) {
12 entry.asyncDoom(
13 new EvictionCallback(true, function() {
14 finish_cache2_test();
15 })
16 );
17 })
18 );
19
20 do_test_pending();
21 }

mercurial