6 var mc = new MultipleCallbacks(2, function () {
7 var mem = getCacheStorage("memory");
8 var disk = getCacheStorage("disk");
10 Assert.ok(disk.exists(createURI("http://m1/"), ""));
11 Assert.ok(mem.exists(createURI("http://m1/"), ""));
12 Assert.ok(!mem.exists(createURI("http://m2/"), ""));
13 Assert.ok(disk.exists(createURI("http://d1/"), ""));
14 do_check_throws_nsIException(
15 () => disk.exists(createURI("http://d2/"), ""),
16 "NS_ERROR_NOT_AVAILABLE"
25 Ci.nsICacheStorage.OPEN_NORMALLY,
26 Services.loadContextInfo.default,
27 new OpenCallback(NEW | WAITFORWRITE, "meta", "data", function (entry) {
35 Ci.nsICacheStorage.OPEN_NORMALLY,
36 Services.loadContextInfo.default,
37 new OpenCallback(NEW | WAITFORWRITE, "meta", "data", function (entry) {