OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script> | 4 <script> |
5 if (window.testRunner) { | 5 if (window.testRunner) { |
6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
7 testRunner.dumpAsText(true); | 7 testRunner.dumpAsTextWithPixelResults(); |
8 testRunner.setPluginsEnabled(false); | 8 testRunner.setPluginsEnabled(false); |
9 } | 9 } |
10 | 10 |
11 function done() | 11 function done() |
12 { | 12 { |
13 if (window.testRunner) | 13 if (window.testRunner) |
14 testRunner.notifyDone(); | 14 testRunner.notifyDone(); |
15 } | 15 } |
16 | 16 |
17 window.onload = function() { | 17 window.onload = function() { |
18 var elem = document.createElement("object"); | 18 var elem = document.createElement("object"); |
19 elem.onload = done; | 19 elem.onload = done; |
20 elem.type = "image/png"; | 20 elem.type = "image/png"; |
21 elem.data = "resources/oval.png"; | 21 elem.data = "resources/oval.png"; |
22 document.body.appendChild(elem); | 22 document.body.appendChild(elem); |
23 }; | 23 }; |
24 </script> | 24 </script> |
25 </head> | 25 </head> |
26 </html> | 26 </html> |
OLD | NEW |