OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 #plugin { | 4 #plugin { |
5 width: 150px; | 5 width: 150px; |
6 height: 150px; | 6 height: 150px; |
7 } | 7 } |
8 </style> | 8 </style> |
9 </head> | 9 </head> |
10 | 10 |
11 <body> | 11 <body> |
12 <embed id="plugin" type="application/x-webkit-test-webplugin" primitive="triangl
e" background-color="green" primitive-color="blue"></embed> | 12 <embed id="plugin" type="application/x-webkit-test-webplugin" primitive="triangl
e" background-color="green" primitive-color="blue"></embed> |
13 <script> | 13 <script> |
14 | 14 |
15 if (!window.testRunner) { | 15 if (!window.testRunner) { |
16 document.write("This test does not work in manual mode."); | 16 document.write("This test does not work in manual mode."); |
17 } else { | 17 } else { |
18 testRunner.dumpAsText(); | 18 testRunner.dumpAsText(); |
19 | 19 |
20 // Send some gesture events to the plugin. | 20 // Send some gesture events to the plugin. |
21 var positionX = plugin.offsetLeft + 10; | 21 var positionX = plugin.offsetLeft + 10; |
22 var positionY = plugin.offsetTop + 10; | 22 var positionY = plugin.offsetTop + 10; |
23 eventSender.gestureTap(positionX, positionY); | 23 eventSender.gestureTap(positionX, positionY); |
24 eventSender.gestureShowPress(positionX, positionY); | 24 eventSender.gestureShowPress(positionX, positionY); |
25 eventSender.gestureScrollBegin(positionX, positionY); | 25 eventSender.gestureScrollBegin(positionX, positionY); |
26 eventSender.gestureScrollUpdate(30, 0); | 26 eventSender.gestureScrollUpdate(30, 0); |
27 eventSender.gestureScrollUpdateWithoutPropagation(30, 0); | 27 eventSender.gestureScrollUpdate(30, 0, true); |
28 eventSender.gestureScrollEnd(0, 0); | 28 eventSender.gestureScrollEnd(0, 0); |
29 } | 29 } |
30 | 30 |
31 </script> | 31 </script> |
32 </body> | 32 </body> |
33 </html> | 33 </html> |
OLD | NEW |