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

This commit is contained in:
Phil Ringnalda 2012-09-16 01:01:59 -07:00
parent 34a36c45d3
commit 2fdbc456a3

View File

@ -52,6 +52,7 @@ var gTestIndex = 0;
// in dom/tests/mochitest/pointerlock/test_pointerlock-api.html, which uses the same pattern.
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;
function nextTest() {
if (isWinXP) {
@ -61,7 +62,7 @@ function nextTest() {
}
if (testWindow) {
testWindow.close();
if (isOSXLion) {
if (isOSXLion || isOSXMtnLion) {
// 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.