iframe-between-tests.html (706B)
1 <title>iframe for between tests</title> 2 <!-- 3 This page exists so that our accounting for assertions correctly 4 counts assertions that happen while leaving a page. We load this page 5 after a test finishes, check the assertion counts, and then go on to 6 load the next. 7 --> 8 <script> 9 window.addEventListener("load", function() { 10 var runner = (parent.TestRunner || parent.wrappedJSObject.TestRunner); 11 const urlParams = new URLSearchParams(window.location.search); 12 var result = urlParams.get("result", "ERROR"); 13 var runtime = urlParams.get("runtime", "-1"); 14 runner.testUnloaded(result, runtime); 15 16 if (SpecialPowers) { 17 SpecialPowers.DOMWindowUtils.runNextCollectorTimer(); 18 } 19 }); 20 </script>