summaryrefslogtreecommitdiffstats
path: root/layout/generic/test
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:30:12 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:30:12 +0000
commitac282b5848d90db100955fee6ce47745f67e0f40 (patch)
treea7f1cb23c9be53cc524781feccc0ad1f5a59ab97 /layout/generic/test
parentReleasing progress-linux version 115.8.0esr-1~progress7.99u1. (diff)
downloadfirefox-esr-ac282b5848d90db100955fee6ce47745f67e0f40.tar.xz
firefox-esr-ac282b5848d90db100955fee6ce47745f67e0f40.zip
Merging upstream version 115.9.0esr.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/generic/test')
-rw-r--r--layout/generic/test/file_bug514732_window.xhtml17
1 files changed, 15 insertions, 2 deletions
diff --git a/layout/generic/test/file_bug514732_window.xhtml b/layout/generic/test/file_bug514732_window.xhtml
index 094ff9ab23..5d7342776f 100644
--- a/layout/generic/test/file_bug514732_window.xhtml
+++ b/layout/generic/test/file_bug514732_window.xhtml
@@ -5,7 +5,7 @@
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
width="600"
height="600"
- onload="setTimeout(nextTest,0);"
+ onload="setTimeout(startTests,0);"
title="bug 514732 test">
<script type="application/javascript"><![CDATA[
@@ -75,7 +75,20 @@
finish();
}
-
+
+ function startTests() {
+ // Flush layout in outer and inner documents (in that order), to be sure
+ // our TestWindow's initial about:blank document doesn't have any
+ // pending reflows. (If we leave these pending reflows un-flushed, then
+ // they might happen after we've set up our MozScrolledAreaChanged
+ // event-listener; and that would confuse our test logic and lead to
+ // timeouts and test-failures.)
+ document.documentElement.offsetHeight;
+ TestWindow.getDocument().documentElement.offsetHeight;
+
+ // Kick off the first test via the generator-iterator.
+ nextTest();
+ }
]]></script>
<browser type="content" primary="true" flex="1" id="content" src="about:blank"/>