зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1174323 - Disable screenClientXYConst subtest of pointerlock test on OS X. rs=KWierso
This commit is contained in:
Родитель
56c4a26517
Коммит
2d0b1c04d6
|
@ -62,6 +62,12 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=633602
|
|||
"file_allowPointerLockSandboxFlag.html"
|
||||
];
|
||||
|
||||
var gDisableList = [
|
||||
// Bug 1174323
|
||||
{ file: "file_screenClientXYConst.html",
|
||||
platform: "MacIntel" }
|
||||
];
|
||||
|
||||
var gTestWindow = null;
|
||||
var gTestIndex = 0;
|
||||
|
||||
|
@ -98,8 +104,22 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=633602
|
|||
|
||||
function runNextTest() {
|
||||
if (gTestIndex < gTestFiles.length) {
|
||||
gTestWindow = window.open(gTestFiles[gTestIndex], "", "width=500,height=500");
|
||||
var file = gTestFiles[gTestIndex];
|
||||
gTestIndex++;
|
||||
|
||||
var skipTest = false;
|
||||
for (var item of gDisableList) {
|
||||
if (item.file == file && navigator.platform == item.platform) {
|
||||
skipTest = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!skipTest) {
|
||||
info(`Testing ${file}`);
|
||||
gTestWindow = window.open(file, "", "width=500,height=500");
|
||||
} else {
|
||||
nextTest();
|
||||
}
|
||||
} else {
|
||||
finish();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче