OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <script src="resources/print.js"></script> | |
4 <script> | |
5 if (window.testRunner) { | |
6 testRunner.dumpAsText(); | |
7 testRunner.waitUntilDone(); | |
8 } | |
9 | |
10 document.addEventListener("beforeload", function(event) { | |
11 event.preventDefault(); | |
12 }, true); | |
13 | |
14 function checkObject() | |
15 { | |
16 var style = getComputedStyle(document.getElementsByTagName("object")
[0], null); | |
17 if (style.width != "auto" || style.height != "auto") | |
18 print("FAIL", "red"); | |
19 | |
20 if (window.testRunner) | |
21 testRunner.notifyDone(); | |
22 } | |
23 </script> | |
24 </head> | |
25 <body onload="checkObject();"> | |
26 <div id="target"></div> | |
27 <div id="console"></div> | |
28 <script> | |
29 document.getElementById("target").innerHTML = "<object data='../../image
s/resources/test-load.jpg'><span style='font-family:monospace; color:green'>PASS
</span></object>"; | |
30 </script> | |
31 </body> | |
32 </html> | |
OLD | NEW |