summaryrefslogtreecommitdiffstats
path: root/netwerk/cookie/test/browser/browser_domCache.js
blob: 5f1aa84d83f058cb08a095807b43586f5ebcbbef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"use strict";

CookiePolicyHelper.runTest("DOM Cache", {
  cookieJarAccessAllowed: async w => {
    await w.caches.open("wow").then(
      _ => {
        ok(true, "DOM Cache can be used!");
      },
      _ => {
        ok(false, "DOM Cache can be used!");
      }
    );
  },

  cookieJarAccessDenied: async w => {
    await w.caches.open("wow").then(
      _ => {
        ok(false, "DOM Cache cannot be used!");
      },
      _ => {
        ok(true, "DOM Cache cannot be used!");
      }
    );
  },
});