17 <embed id=
"plugin" type=
"application/x-webkit-test-webplugin" primitive=
"triangle" background-color=
"green" primitive-color=
"blue"></embed>
20 if (!window
.testRunner
) {
21 document
.write("This test does not work in manual mode.");
23 testRunner
.dumpAsText();
24 internals
.updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks();
26 // Scroll so the plugin is 100px down the page
27 window
.scroll(0, 400);
29 // These events should not reach the plugin since it's futher down on the page.
30 eventSender
.gestureShowPress(30, 30);
31 eventSender
.gestureShowPress(30, 530);
33 // Send some gesture events to the plugin.
36 eventSender
.gestureTap(positionX
, positionY
);
37 eventSender
.gestureScrollBegin(positionX
, positionY
);
38 eventSender
.gestureScrollUpdate(30, 0);
39 eventSender
.gestureScrollUpdate(30, 0, true);
40 eventSender
.gestureScrollEnd(0, 0);