test_cache2-10b-evict-direct-immediate.js (386B)
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 | 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 }