layout/reftests/bugs/482659-1d.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/bugs/482659-1d.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,26 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html class="reftest-wait">
     1.6 +  <head>
     1.7 +    <script>
     1.8 +      function doTest() {
     1.9 +        window.frames[0].location =
    1.10 +          'javascript:document.write(""); document.close(); ' +
    1.11 +          'parent.continueTest();'
    1.12 +      }
    1.13 +
    1.14 +      function continueTest() {
    1.15 +        // Do this part async just in case
    1.16 +        setTimeout(function() {
    1.17 +          window.frames[0].document.body.innerHTML =
    1.18 +            "<img src='passouter.png' " +
    1.19 +            "onload='window.parent.document.documentElement.className = &quot;&quot;'>";
    1.20 +                                                                                        }, 0);
    1.21 +      }
    1.22 +      document.addEventListener("MozReftestInvalidate", doTest, false);
    1.23 +    </script>
    1.24 +  </head>
    1.25 +  <body>
    1.26 +    <iframe src="about:blank"></iframe>
    1.27 +  </body>
    1.28 +</html>
    1.29 +  

mercurial