mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Bug 1330553 - Disable fullscreen-plugins subtest for e10s Linux.
MozReview-Commit-ID: BxBS6P8ckD8 --HG-- extra : rebase_source : 9ca596c40feb3fa7d5e76fbcc8daa0e4839bb4c1 extra : source : 3e86d4032007a6637593b396a104d29b2c9ea57b
This commit is contained in:
parent
d978bf2b9d
commit
f140165057
@ -441,7 +441,7 @@ skip-if = toolkit == 'android'
|
||||
[test_formelements.html]
|
||||
[test_fullscreen-api.html]
|
||||
tags = fullscreen
|
||||
skip-if = toolkit == 'android' || (e10s && os == 'linux') # Bug 1307347
|
||||
skip-if = toolkit == 'android'
|
||||
support-files =
|
||||
file_fullscreen-api.html
|
||||
file_fullscreen-backdrop.html
|
||||
|
@ -62,19 +62,35 @@ function nextTest() {
|
||||
SimpleTest.executeSoon(runNextTest);
|
||||
}
|
||||
|
||||
function shouldSkipTest(test) {
|
||||
if (test == "file_fullscreen-plugins.html") {
|
||||
if (!SpecialPowers.isMainProcess() &&
|
||||
navigator.platform.indexOf('Linux') >= 0) {
|
||||
// Bug 1330553
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function runNextTest() {
|
||||
if (gTestIndex < gTestWindows.length) {
|
||||
info("Run test " + gTestWindows[gTestIndex]);
|
||||
testWindow = window.open(gTestWindows[gTestIndex], "", "width=500,height=500,scrollbars=yes");
|
||||
// We'll wait for the window to load, then make sure our window is refocused
|
||||
// before starting the test, which will get kicked off on "focus".
|
||||
// This ensures that we're essentially back on the primary "desktop" on
|
||||
// OS X Lion before we run the test.
|
||||
testWindow.addEventListener("load", function() {
|
||||
SimpleTest.waitForFocus(function() {
|
||||
SimpleTest.waitForFocus(testWindow.begin, testWindow);
|
||||
});
|
||||
}, {once: true});
|
||||
let test = gTestWindows[gTestIndex];
|
||||
if (shouldSkipTest(test)) {
|
||||
info(`Skip test ${test}`);
|
||||
} else {
|
||||
info(`Run test ${test}`);
|
||||
testWindow = window.open(test, "", "width=500,height=500,scrollbars=yes");
|
||||
// We'll wait for the window to load, then make sure our window is refocused
|
||||
// before starting the test, which will get kicked off on "focus".
|
||||
// This ensures that we're essentially back on the primary "desktop" on
|
||||
// OS X Lion before we run the test.
|
||||
testWindow.addEventListener("load", function() {
|
||||
SimpleTest.waitForFocus(function() {
|
||||
SimpleTest.waitForFocus(testWindow.begin, testWindow);
|
||||
});
|
||||
}, {once: true});
|
||||
}
|
||||
gTestIndex++;
|
||||
} else {
|
||||
SimpleTest.finish();
|
||||
|
Loading…
Reference in New Issue
Block a user