From 37a6f34897750f0c473b9dbfa5f1dbfcf10a105a Mon Sep 17 00:00:00 2001 From: Serge Gautherie Date: Tue, 15 May 2012 15:33:55 +0200 Subject: [PATCH] Bug 632408. (Bv1) Improve newer test code some more. r=roc. --- layout/base/tests/chrome/Makefile.in | 9 +++- ...t_leaf_layers_partition_browser_window.xul | 42 ++++++++++++------- 2 files changed, 33 insertions(+), 18 deletions(-) diff --git a/layout/base/tests/chrome/Makefile.in b/layout/base/tests/chrome/Makefile.in index bc6a0f397355..6cc00fe30ab9 100644 --- a/layout/base/tests/chrome/Makefile.in +++ b/layout/base/tests/chrome/Makefile.in @@ -63,7 +63,6 @@ _CHROME_FILES = \ chrome_over_plugin_window.xul \ test_default_background.xul \ default_background_window.xul \ - test_leaf_layers_partition_browser_window.xul \ test_no_clip_iframe.xul \ no_clip_iframe_window.xul \ no_clip_iframe_subdoc.html \ @@ -76,7 +75,13 @@ _CHROME_FILES = \ printpreview_bug482976_helper.xul \ test_transformed_scrolling_repaints.html \ test_transformed_scrolling_repaints_2.html \ - $(NULL) + $(NULL) + +ifdef MOZ_DEBUG +_CHROME_FILES += \ + test_leaf_layers_partition_browser_window.xul \ + $(NULL) +endif libs:: $(_CHROME_FILES) $(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/chrome/$(relativesrcdir) 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 52b2c03120dd..6ffcfa3eeb2b 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 @@ -15,11 +15,15 @@ ", "", "scrollbars=yes,toolbar,menubar,width=500,height=500"); - win.addEventListener('load', doTest, false); + win.addEventListener("load", doTest, false); } nextTest();