Bug 762049 - Part 5: Disable OOP tests on Windows. r=mounir

This commit is contained in:
Justin Lebar 2012-06-09 12:05:31 -04:00
parent 7b6656d5f8
commit 31954f2dce

View File

@ -123,14 +123,9 @@ browserElementTestHelpers.origPageThumbsEnabledPref = browserElementTestHelpers.
browserElementTestHelpers.setPageThumbsEnabledPref(false); browserElementTestHelpers.setPageThumbsEnabledPref(false);
// Enable or disable OOP depending on the test's filename. // Enable or disable OOP depending on the test's filename.
var oop; // Always disable OOP on Windows (bug 763081).
if (location.pathname.indexOf("_inproc_") != -1) { var oop = navigator.platform.indexOf('Win') == -1 &&
oop = false; location.pathname.indexOf('_inproc_') == -1;
}
else {
// oop by default
oop = true;
}
browserElementTestHelpers.setOOPByDefaultPref(oop); browserElementTestHelpers.setOOPByDefaultPref(oop);
browserElementTestHelpers.setOOPDisabledPref(false); browserElementTestHelpers.setOOPDisabledPref(false);