summaryrefslogtreecommitdiffstats
path: root/dom/tests/browser/browser_largeAllocation_win32.js
blob: d45f1585fa6f25d1653f5b214cf2890aa3e91452 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
let testDir = gTestPath.substr(0, gTestPath.lastIndexOf("/"));
Services.scriptloader.loadSubScript(
  testDir + "/helper_largeAllocation.js",
  this
);

add_task(async function() {
  info("Test 1 - On win32 - no forceEnable pref");
  await SpecialPowers.pushPrefEnv({
    set: [
      // Enable the header if it is disabled
      ["dom.largeAllocationHeader.enabled", true],
      // Increase processCount.webLargeAllocation to avoid any races where
      // processes aren't being cleaned up quickly enough.
      ["dom.ipc.processCount.webLargeAllocation", 20],
    ],
  });
  /* global largeAllocSuccessTests */
  await largeAllocSuccessTests();
});