fune/dom/tests/browser/browser_largeAllocation_win32.js
Victor Porof 0a8ff0ad85 Bug 1561435 - Format dom/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35951

--HG--
extra : source : 62f3501af4bc1c0bd1ee1977a28aee04706a6663
2019-07-05 10:44:55 +02:00

20 lines
653 B
JavaScript

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();
});