1
0
Fork 0
firefox/testing/mochitest/tests/SimpleTest/iframe-between-tests.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

20 lines
706 B
HTML

<title>iframe for between tests</title>
<!--
This page exists so that our accounting for assertions correctly
counts assertions that happen while leaving a page. We load this page
after a test finishes, check the assertion counts, and then go on to
load the next.
-->
<script>
window.addEventListener("load", function() {
var runner = (parent.TestRunner || parent.wrappedJSObject.TestRunner);
const urlParams = new URLSearchParams(window.location.search);
var result = urlParams.get("result", "ERROR");
var runtime = urlParams.get("runtime", "-1");
runner.testUnloaded(result, runtime);
if (SpecialPowers) {
SpecialPowers.DOMWindowUtils.runNextCollectorTimer();
}
});
</script>