| <!doctype HTML> | |
| <embed type="application/x-plugin-placeholder-test"></embed><br> | |
| <embed type="application/x-plugin-placeholder-test"></embed><br> | |
| <embed type="application/x-plugin-placeholder-test"></embed><br> | |
| <div style="height: 3000px"></div> | |
| <style> | |
| ::-webkit-scrollbar { | |
| -webkit-appearance: none; | |
| } | |
| embed { | |
| width: 200px; | |
| height: 80px; | |
| padding: 20px; | |
| margin: 20px; | |
| border: 2px solid black; | |
| } | |
| </style> | |
| <script> | |
| onload = function() { | |
| window.scrollBy(0, 100); | |
| if (window.testRunner) { | |
| testRunner.waitUntilDone(); | |
| // Need to paint two frames in order to allow the plugin to properly load. | |
| // TODO(chrishtr): find out why and fix. | |
| requestAnimationFrame(function() { | |
| requestAnimationFrame(function() { | |
| requestAnimationFrame(function() { | |
| testRunner.notifyDone(); | |
| }); | |
| }); | |
| }); | |
| } | |
| } | |
| </script> |