blob: bb9f0a1af175592d7acdb124b0caa4ffabb5e0bf [file] [log] [blame]
<html>
<head>
<style>
body {
height: 2000px;
}
#plugin {
position: absolute;
top: 500px;
width: 150px;
height: 150px;
}
</style>
</head>
<body>
<embed id="plugin" type="application/x-webkit-test-webplugin" primitive="triangle" background-color="green" primitive-color="blue"></embed>
<script>
if (!window.testRunner) {
document.write("This test does not work in manual mode.");
} else {
testRunner.dumpAsText();
internals.updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks();
// Scroll so the plugin is 100px down the page
window.scroll(0, 400);
// These events should not reach the plugin since it's futher down on the page.
eventSender.gestureShowPress(30, 30);
eventSender.gestureShowPress(30, 530);
// Send some gesture events to the plugin.
var positionX = 30;
var positionY = 110;
eventSender.gestureTap(positionX, positionY);
eventSender.gestureScrollBegin(positionX, positionY);
eventSender.gestureScrollUpdate(30, 0);
eventSender.gestureScrollUpdateWithoutPropagation(30, 0);
eventSender.gestureScrollEnd(0, 0);
}
</script>
</body>
</html>