| 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 <embed id="plugin" type="application/x-webkit-test-webplugin" primitive="triangl
e" background-color="green" primitive-color="blue"></embed> | |
| 18 <script> | |
| 19 | |
| 20 if (!window.testRunner) { | |
| 21 document.write("This test does not work in manual mode."); | |
| 22 } else { | |
| 23 testRunner.dumpAsText(); | |
| 24 | |
| 25 // Scroll so the plugin is 100px down the page | |
| 26 window.scroll(0, 400); | |
| 27 | |
| 28 // These events should not reach the plugin since it's futher down on th
e page. | |
| 29 eventSender.gestureTapDown(30, 30); | |
| 30 eventSender.gestureTapDown(30, 530); | |
| 31 | |
| 32 // Send some gesture events to the plugin. | |
| 33 var positionX = 30; | |
| 34 var positionY = 110; | |
| 35 eventSender.gestureTap(positionX, positionY); | |
| 36 eventSender.gestureScrollBegin(positionX, positionY); | |
| 37 eventSender.gestureScrollUpdate(30, 0); | |
| 38 eventSender.gestureScrollUpdateWithoutPropagation(30, 0); | |
| 39 eventSender.gestureScrollEnd(0, 0); | |
| 40 } | |
| 41 | |
| 42 </script> | |
| 43 </body> | |
| 44 </html> | |
| OLD | NEW |