testing/mochitest/tests/SimpleTest/iframe-between-tests.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/testing/mochitest/tests/SimpleTest/iframe-between-tests.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,17 @@
     1.4 +<title>iframe for between tests</title>
     1.5 +<!--
     1.6 +  This page exists so that our accounting for assertions correctly
     1.7 +  counts assertions that happen while leaving a page.  We load this page
     1.8 +  after a test finishes, check the assertion counts, and then go on to
     1.9 +  load the next.
    1.10 +-->
    1.11 +<script>
    1.12 +window.addEventListener("load", function() {
    1.13 +  var runner = (parent.TestRunner || parent.wrappedJSObject.TestRunner);
    1.14 +  runner.testUnloaded();
    1.15 +
    1.16 +  if (SpecialPowers) {
    1.17 +    SpecialPowers.DOMWindowUtils.runNextCollectorTimer();
    1.18 +  }
    1.19 +});
    1.20 +</script>

mercurial