OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <style> |
| 4 body { |
| 5 height: 2000px; |
| 6 } |
| 7 #plugin { |
| 8 position: absolute; |
| 9 top: 500px; |
| 10 width: 150px; |
| 11 height: 150px; |
| 12 } |
| 13 </style> |
| 14 </head> |
| 15 |
| 16 <body> |
| 17 <div id="pluginContainer"></div> |
| 18 <div>Each line below should start with 'Pass':</div> |
| 19 <div id="result1"></div> |
| 20 <script> |
| 21 |
| 22 if (!window.testRunner) { |
| 23 document.write("This test does not work in manual mode."); |
| 24 } else { |
| 25 testRunner.dumpAsText(); |
| 26 |
| 27 var plugin = document.createElement("object"); |
| 28 plugin.setAttribute("width", 300); |
| 29 plugin.setAttribute("height", 200); |
| 30 plugin.setAttribute("type", |
| 31 "application/x-webkit-test-webplugin-can-create-without-renderer"); |
| 32 |
| 33 if ((plugin.canCreateWithoutRenderer != undefined) && plugin.canCreateWi
thoutRenderer) |
| 34 result1.innerHTML = "Pass: plugin exists without attachment to rendere
r."; |
| 35 else |
| 36 result1.innerHTML = "Fail: plugin does not exist."; |
| 37 } |
| 38 |
| 39 </script> |
| 40 </body> |
| 41 </html> |
OLD | NEW |