Bug 640889 - Disable test in debug Windows < Vista while work proceeds on making it pass with the XP resizer in the way, r=tn, a=test

This commit is contained in:
Phil Ringnalda 2011-03-11 21:59:30 -08:00
parent 7627ac6dd3
commit 183347aaec

View File

@ -17,6 +17,15 @@
<![CDATA[
SimpleTest.waitForExplicitFinish();
// Bug 640889 - the test doesn't like seeing the WinXP resizer.
var version = Components.classes["@mozilla.org/system-info;1"]
.getService(Components.interfaces.nsIPropertyBag2)
.getProperty("version");
if (navigator.platform.indexOf("Win") == 0 && parseFloat(version) < 6.0) {
todo(false, "Bug 640889 - the test doesn't like seeing the WinXP resizer.");
SimpleTest.finish();
} else {
// Run the test in a separate window so we get a clean browser window.
window.open("data:text/html,<html style='overflow:scroll'><script>opener.doTest(window);</script>",
"", "scrollbars=yes,toolbar,menubar,width=500,height=500");
@ -46,6 +55,7 @@
SimpleTest.executeSoon(nextStep);
}
}
]]>
</script>
</window>