Fixing bustage from bug 641342.

--HG--
extra : rebase_source : 4d0dc461bb21028b4f0dba4de8c1f925a3c85a47
This commit is contained in:
Blake Kaplan 2011-05-12 17:12:00 -07:00
parent b8b683195b
commit a3b8fcc68e

View File

@ -26,11 +26,7 @@
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,chrome");
function doTest(win) {
function doTest(evt) {
var initialCount = win.mozPaintCount;
function nextStep() {
@ -54,6 +50,12 @@
SimpleTest.executeSoon(nextStep);
}
// Run the test in a separate window so we get a clean browser window.
var win = window.open("data:text/html,<html style='overflow:scroll'>",
"", "scrollbars=yes,toolbar,menubar,width=500,height=500");
win.addEventListener('load', doTest, false);
}
]]>
</script>