layout/reftests/bugs/474472-1.html

branch
TOR_BUG_9701
changeset 3
141e0f1194b1
equal deleted inserted replaced
-1:000000000000 0:efe38a90ce2d
1 <!DOCTYPE html>
2 <html class="reftest-wait">
3 <body>
4 <iframe id="foo" src="data:text/html,<body bgcolor='red'>FAIL</body>"></iframe>
5 <script type="text/javascript">
6 // Globals
7 var foo = document.getElementById('foo');
8 var win = foo.contentWindow;
9
10 // Start the chain of execution when iframe's window loads
11 win.onload = iframeWindowLoaded;
12
13 function iframeWindowLoaded() {
14 setTimeout("tweak()", 0);
15 }
16 function tweak() {
17 win.location ="data:text/html,<body bgcolor='lime'>PASS</body>";
18 foo.onload = snapshot;
19 }
20 function snapshot() {
21 document.documentElement.className = '';
22 }
23 </script>
24 </body>
25 </html>

mercurial