OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <style> |
| 4 #plugin { |
| 5 width: 150px; |
| 6 height: 150px; |
| 7 } |
| 8 </style> |
| 9 </head> |
| 10 |
| 11 <body> |
| 12 <embed id="plugin" type="application/x-webkit-test-webplugin-persistent" |
| 13 accepts-touch="raw"></embed> |
| 14 <div>Each event description above should be followed by 'TestPlugin: isPersisten
t'</div> |
| 15 <script> |
| 16 |
| 17 if (!window.testRunner || !window.eventSender) { |
| 18 document.write("This test does not work in manual mode."); |
| 19 } else { |
| 20 testRunner.dumpAsText(); |
| 21 testRunner.waitUntilDone(); |
| 22 |
| 23 // Verify that the plugin is not destroyed. |
| 24 plugin.setAttribute("display", "none"); |
| 25 // Force synchronous style recalc. |
| 26 plugin.offsetTop; |
| 27 |
| 28 var positionX = plugin.offsetLeft + 10; |
| 29 var positionY = plugin.offsetTop + 10; |
| 30 window.setTimeout(function () { |
| 31 eventSender.addTouchPoint(positionX, positionY); |
| 32 eventSender.touchStart(); |
| 33 eventSender.releaseTouchPoint(0); |
| 34 eventSender.touchEnd(); |
| 35 |
| 36 testRunner.notifyDone(); |
| 37 }, 50); |
| 38 } |
| 39 |
| 40 </script> |
| 41 </body> |
| 42 </html> |
OLD | NEW |