summaryrefslogtreecommitdiffstats
path: root/dom/quota/test/common/mochitest.js
blob: 1b867f6e92f8b62d73db4affc0a41faaee358063 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/
 */

loadScript("dom/quota/test/common/content.js");

async function enableStorageTesting() {
  let prefsToSet = [
    ["dom.quotaManager.testing", true],
    ["dom.storageManager.enabled", true],
    ["dom.simpleDB.enabled", true],
  ];
  if (SpecialPowers.Services.appinfo.OS === "WINNT") {
    prefsToSet.push(["dom.quotaManager.useDOSDevicePathSyntax", true]);
  }

  await SpecialPowers.pushPrefEnv({ set: prefsToSet });
}