Bug 1114710 - test_leaf_layers_partition_browser_window.xul fails when run as a standalone directory. r=tn

This commit is contained in:
Joel Maher 2014-12-31 12:02:00 +01:00
parent 4c80b736b4
commit 6ad8bb118c

View File

@ -96,10 +96,16 @@
return;
}
window.focus();
// Run the test in a separate window so we get a clean browser window.
win = window.open("data:text/html,<html style='overflow:scroll'>",
"", "scrollbars=yes,toolbar,menubar,width=500,height=500");
setTimeout(setupWindow, 0);
}
function setupWindow() {
win.addEventListener("load", doTest, false);
win.focus();
}
nextTest();