| 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="touch_plugin" type="application/x-webkit-test-webplugin" accepts-touc
h="synthetic" print-event-details="true"></embed><embed id="plugin" type="applic
ation/x-webkit-test-webplugin"></embed> | |
| 13 <script> | |
| 14 | |
| 15 if (!window.testRunner || !window.eventSender) { | |
| 16 document.write("This test does not work in manual mode."); | |
| 17 } else { | |
| 18 testRunner.dumpAsText(); | |
| 19 | |
| 20 var positionX = plugin.offsetLeft + 10; | |
| 21 var positionY = plugin.offsetTop + 10; | |
| 22 eventSender.addTouchPoint(positionX, positionY); | |
| 23 eventSender.touchStart(); | |
| 24 eventSender.releaseTouchPoint(0); | |
| 25 eventSender.touchEnd(); | |
| 26 | |
| 27 positionX = touch_plugin.offsetLeft + 10; | |
| 28 positionY = touch_plugin.offsetTop + 10; | |
| 29 eventSender.addTouchPoint(positionX, positionY); | |
| 30 eventSender.touchStart(); | |
| 31 eventSender.updateTouchPoint(0, positionX + 10, positionY + 5); | |
| 32 eventSender.touchMove(); | |
| 33 eventSender.releaseTouchPoint(0); | |
| 34 eventSender.touchEnd(); | |
| 35 | |
| 36 eventSender.zoomPageIn(); | |
| 37 eventSender.addTouchPoint(positionX, positionY); | |
| 38 eventSender.touchStart(); | |
| 39 eventSender.updateTouchPoint(0, positionX + 10, positionY + 5); | |
| 40 eventSender.touchMove(); | |
| 41 eventSender.releaseTouchPoint(0); | |
| 42 eventSender.touchEnd(); | |
| 43 | |
| 44 eventSender.zoomPageOut(); | |
| 45 eventSender.addTouchPoint(positionX, positionY); | |
| 46 eventSender.touchStart(); | |
| 47 eventSender.updateTouchPoint(0, positionX + 10, positionY + 5); | |
| 48 eventSender.touchMove(); | |
| 49 eventSender.releaseTouchPoint(0); | |
| 50 eventSender.touchEnd(); | |
| 51 } | |
| 52 | |
| 53 </script> | |
| 54 </body> | |
| 55 </html> | |
| OLD | NEW |