OLD | NEW |
1 <body onload="test()"> | 1 <body onload="test()"> |
2 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=38752">bug 38752</a
>: | 2 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=38752">bug 38752</a
>: |
3 Images cannot be dynamically added to image documents.</p> | 3 Images cannot be dynamically added to image documents.</p> |
4 <p id=result>Onload was not called, which is not good. But is the square below g
reen?</p> | 4 <p id=result>Onload was not called, which is not good. But is the square below g
reen?</p> |
5 <iframe src="resources/test-load.jpg" width=100 height=100 frameborder=0></ifram
e> | 5 <iframe src="resources/test-load.jpg" width=100 height=100 frameborder=0></ifram
e> |
6 <script> | 6 <script> |
7 if (window.testRunner) { | 7 if (window.testRunner) { |
8 testRunner.waitUntilDone(); | 8 testRunner.waitUntilDone(); |
9 testRunner.dumpAsText(); | 9 testRunner.dumpAsText(); |
10 } | 10 } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 "img.style.top = 0;" + | 42 "img.style.top = 0;" + |
43 "img.style.left = 0;" + | 43 "img.style.left = 0;" + |
44 "img.style.zIndex = '2000000';" + | 44 "img.style.zIndex = '2000000';" + |
45 "img.onload = function() { top.loaded() };" + | 45 "img.onload = function() { top.loaded() };" + |
46 "document.body.appendChild(img);" | 46 "document.body.appendChild(img);" |
47 d.body.appendChild(script); | 47 d.body.appendChild(script); |
48 } | 48 } |
49 | 49 |
50 </script> | 50 </script> |
51 </body> | 51 </body> |
OLD | NEW |