tor-browser

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

test_cache2-08-evict-disk-by-memory-storage.js (491B)


      1 "use strict";
      2 
      3 function run_test() {
      4  do_get_profile();
      5 
      6  asyncOpenCacheEntry(
      7    "http://a/",
      8    "disk",
      9    Ci.nsICacheStorage.OPEN_NORMALLY,
     10    null,
     11    new OpenCallback(NEW, "a1m", "a1d", function () {
     12      var storage = getCacheStorage("memory");
     13      // Have to fail
     14      storage.asyncDoomURI(
     15        createURI("http://a/"),
     16        "",
     17        new EvictionCallback(false, function () {
     18          finish_cache2_test();
     19        })
     20      );
     21    })
     22  );
     23 
     24  do_test_pending();
     25 }