layout/reftests/bugs/474472-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/bugs/474472-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html class="reftest-wait">
     1.6 +  <body>
     1.7 +    <iframe id="foo" src="data:text/html,<body bgcolor='red'>FAIL</body>"></iframe> 
     1.8 +    <script type="text/javascript">
     1.9 +      // Globals
    1.10 +      var foo = document.getElementById('foo');
    1.11 +      var win = foo.contentWindow;
    1.12 +
    1.13 +      // Start the chain of execution when iframe's window loads
    1.14 +      win.onload = iframeWindowLoaded;
    1.15 +
    1.16 +      function iframeWindowLoaded() {
    1.17 +        setTimeout("tweak()", 0);
    1.18 +      }
    1.19 +      function tweak() {
    1.20 +        win.location ="data:text/html,<body bgcolor='lime'>PASS</body>";
    1.21 +        foo.onload = snapshot;
    1.22 +      }
    1.23 +      function snapshot() {
    1.24 +        document.documentElement.className = '';
    1.25 +      }
    1.26 +    </script>
    1.27 +  </body>
    1.28 +</html>

mercurial