Bug 1174323 - Disable screenClientXYConst subtest of pointerlock test on OS X. rs=KWierso

This commit is contained in:
Xidorn Quan 2015-07-08 19:25:45 +10:00
Родитель 56c4a26517
Коммит 2d0b1c04d6
1 изменённых файлов: 21 добавлений и 1 удалений

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

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