Bug 639705 - update test_fullscreen-api.html hacks to cover OS X 10.10 too

This commit is contained in:
Phil Ringnalda 2015-01-14 22:30:04 -08:00
parent c36f2b7b3f
commit 51649256cf

View File

@ -57,6 +57,7 @@ var gTestIndex = 0;
const isWinXP = navigator.userAgent.indexOf("Windows NT 5.1") != -1;
const isOSXLion = navigator.userAgent.indexOf("Mac OS X 10.7") != -1;
const isOSXMtnLion = navigator.userAgent.indexOf("Mac OS X 10.8") != -1;
const isOSXYosemite = navigator.userAgent.indexOf("Mac OS X 10.10") != -1;
function nextTest() {
if (isWinXP) {
@ -66,7 +67,7 @@ function nextTest() {
}
if (testWindow) {
testWindow.close();
if (isOSXLion || isOSXMtnLion) {
if (isOSXLion || isOSXMtnLion || isOSXYosemite) {
// On OS X Lion, tests cause problems. Timeouts are a bad way to get around
// the problem and may lead to future [orange], but they are the only option
// at this point.
@ -98,7 +99,7 @@ function runNextTest() {
}
}
if (isOSXLion || isOSXMtnLion) {
if (isOSXLion || isOSXMtnLion || isOSXYosemite) {
todo(false, "Can't reliably run full-screen tests on OS X (bug 900453 comment 18 & bug 802504)");
} else {
try {