Bug 1301340 - part3: Force single content process for tests that times out. r=mrbkap

This commit is contained in:
Gabor Krizsanits 2016-11-03 19:28:03 +01:00
Родитель af4e54557a
Коммит 684d9317d3
4 изменённых файлов: 15 добавлений и 2 удалений

Просмотреть файл

@ -25,7 +25,8 @@ add_task(function* setup() {
// make sure userContext is enabled.
yield new Promise(resolve => {
SpecialPowers.pushPrefEnv({"set": [
["privacy.userContext.enabled", true]
["privacy.userContext.enabled", true],
["dom.ipc.processCount", 1]
]}, resolve);
});
});

Просмотреть файл

@ -13,6 +13,12 @@ const TEST_DOC = "https://example.com/browser/devtools/client/webconsole/" +
"test/test_bug1092055_shouldwarn.html";
const SAMPLE_MSG = "specified a header that could not be parsed successfully.";
add_task(function* setup() {
yield SpecialPowers.pushPrefEnv({
set: [["dom.ipc.processCount", 1]]
});
});
add_task(function* () {
let { browser } = yield loadTab(TEST_URI);

Просмотреть файл

@ -8,6 +8,11 @@
const TEST_URI = "data:text/html;charset=utf-8,Web Console test for splitting";
function test() {
waitForExplicitFinish();
SpecialPowers.pushPrefEnv({"set": [["dom.ipc.processCount", 1]]}, runTest);
}
function runTest() {
// Test is slow on Linux EC2 instances - Bug 962931
requestLongerTimeout(2);

Просмотреть файл

@ -63,7 +63,8 @@ function play_non_autoplay_audio () {
add_task(function* setup_test_preference() {
yield new Promise(resolve => {
SpecialPowers.pushPrefEnv({"set": [
["dom.audiochannel.audioCompeting", true]
["dom.audiochannel.audioCompeting", true],
["dom.ipc.processCount", 1]
]}, resolve);
});
});