browser_domCache.js (507B)
1 "use strict"; 2 3 CookiePolicyHelper.runTest("DOM Cache", { 4 cookieJarAccessAllowed: async w => { 5 await w.caches.open("wow").then( 6 _ => { 7 ok(true, "DOM Cache can be used!"); 8 }, 9 _ => { 10 ok(false, "DOM Cache can be used!"); 11 } 12 ); 13 }, 14 15 cookieJarAccessDenied: async w => { 16 await w.caches.open("wow").then( 17 _ => { 18 ok(false, "DOM Cache cannot be used!"); 19 }, 20 _ => { 21 ok(true, "DOM Cache cannot be used!"); 22 } 23 ); 24 }, 25 });