12 <embed id=
"touch_plugin" type=
"application/x-webkit-test-webplugin" accepts-touch=
"raw"></embed><embed id=
"plugin" type=
"application/x-webkit-test-webplugin"></embed>
15 if (!window
.testRunner
|| !window
.eventSender
) {
16 document
.write("This test does not work in manual mode.");
18 testRunner
.dumpAsText();
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();
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();