summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/482659-1d.html
blob: 6296415da5a047e94a8f42c7be497ab76e5c8145 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html class="reftest-wait">
  <head>
    <script>
      function doTest() {
        window.frames[0].location =
          'javascript:document.write(""); document.close(); ' +
          'parent.continueTest();'
      }

      function continueTest() {
        // Do this part async just in case
        setTimeout(function() {
          window.frames[0].document.body.innerHTML =
            "<img src='passouter.png' " +
            "onload='window.parent.document.documentElement.className = &quot;&quot;'>";
                                                                                        }, 0);
      }
      document.addEventListener("MozReftestInvalidate", doTest);
    </script>
  </head>
  <body>
    <iframe src="about:blank"></iframe>
  </body>
</html>