tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_cache2-10-evict-direct.js (598B)


      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 }