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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netwerk/test/unit/test_cache2-10b-evict-direct-immediate.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,21 @@
     1.4 +function run_test()
     1.5 +{
     1.6 +  do_get_profile();
     1.7 +
     1.8 +  if (!newCacheBackEndUsed()) {
     1.9 +    do_check_true(true, "This test doesn't run when the old cache back end is used since the behavior is different");
    1.10 +    return;
    1.11 +  }
    1.12 +
    1.13 +  asyncOpenCacheEntry("http://b/", "disk", Ci.nsICacheStorage.OPEN_NORMALLY, null,
    1.14 +    new OpenCallback(NEW|DOOMED, "b1m", "b1d", function(entry) {
    1.15 +      entry.asyncDoom(
    1.16 +        new EvictionCallback(true, function() {
    1.17 +          finish_cache2_test();
    1.18 +        })
    1.19 +      );
    1.20 +    })
    1.21 +  );
    1.22 +
    1.23 +  do_test_pending();
    1.24 +}

mercurial