Chromium Code Reviews| 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 // This should cause a synchronous style re-calc. | |
| 34 document.body.offsetTop; | |
|
eseidel
2013/12/12 20:40:13
Do you still need this?
wjmaclean
2013/12/12 22:31:15
I'll check ... nope, seems ok without (we *shouldn
| |
| 35 | |
| 36 if ((plugin.canCreateWithoutRenderer != undefined) && plugin.canCreateWi thoutRenderer) | |
| 37 result1.innerHTML = "Pass: plugin exists without attachment to rendere r."; | |
| 38 else | |
| 39 result1.innerHTML = "Fail: plugin does not exist."; | |
| 40 } | |
| 41 | |
| 42 </script> | |
| 43 </body> | |
| 44 </html> | |
| OLD | NEW |