summaryrefslogtreecommitdiff
path: root/testing/mochitest/tests/SimpleTest/iframe-between-tests.html
blob: 8de879f2054a0b7595df7c2f5c3513af7625f607 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<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);
  runner.testUnloaded();

  if (SpecialPowers) {
    SpecialPowers.DOMWindowUtils.runNextCollectorTimer();
  }
});
</script>