diff --git a/layout/generic/test/plugin_clipping_helper.xhtml b/layout/generic/test/plugin_clipping_helper.xhtml index 371b6ba2d50..b9306d62362 100644 --- a/layout/generic/test/plugin_clipping_helper.xhtml +++ b/layout/generic/test/plugin_clipping_helper.xhtml @@ -2,8 +2,6 @@
- - @@ -34,6 +32,9 @@ function runTests() { checkClipRegion("p1", [[0, 0, 300, 100]]); // p2 is partially covered by a table with an opaque background checkClipRegion("p2", [[0, 0, 300, 100]]); + + window.opener.SimpleTest.finish(); + window.close(); } ]]> diff --git a/layout/generic/test/plugin_clipping_helper_transformed.xhtml b/layout/generic/test/plugin_clipping_helper_transformed.xhtml index 5a82f900aee..f18d159f75f 100644 --- a/layout/generic/test/plugin_clipping_helper_transformed.xhtml +++ b/layout/generic/test/plugin_clipping_helper_transformed.xhtml @@ -2,8 +2,6 @@ - - @@ -33,6 +31,9 @@ function runTests() { // p1 and p2 are both in a transformed context so they should be hidden. checkClipRegionNoBounds("p1", []); checkClipRegionNoBounds("p2", []); + + window.opener.SimpleTest.finish(); + window.close(); } ]]> diff --git a/layout/generic/test/plugin_clipping_lib.js b/layout/generic/test/plugin_clipping_lib.js index d402ed03efe..39b8777f929 100644 --- a/layout/generic/test/plugin_clipping_lib.js +++ b/layout/generic/test/plugin_clipping_lib.js @@ -153,9 +153,6 @@ function loaded() { // Run actual test code runTests(); - - finish(); - window.close(); } // Need to run 'loaded' after painting is unsuppressed, or we'll set clip