From 6ad8bb118cb0bece8bf12d0be1569249f15e3b23 Mon Sep 17 00:00:00 2001 From: Joel Maher Date: Wed, 31 Dec 2014 12:02:00 +0100 Subject: [PATCH] Bug 1114710 - test_leaf_layers_partition_browser_window.xul fails when run as a standalone directory. r=tn --- .../chrome/test_leaf_layers_partition_browser_window.xul | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layout/base/tests/chrome/test_leaf_layers_partition_browser_window.xul b/layout/base/tests/chrome/test_leaf_layers_partition_browser_window.xul index 06b90cae392e..c3cce54e51f8 100644 --- a/layout/base/tests/chrome/test_leaf_layers_partition_browser_window.xul +++ b/layout/base/tests/chrome/test_leaf_layers_partition_browser_window.xul @@ -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,", "", "scrollbars=yes,toolbar,menubar,width=500,height=500"); + setTimeout(setupWindow, 0); + } + + function setupWindow() { win.addEventListener("load", doTest, false); + win.focus(); } nextTest();