blob: 84d0818360f498cef3c61880b2ca66eb0836f928 [file] [log] [blame]
<html>
<head>
<style>
#plugin {
width: 150px;
height: 150px;
}
</style>
</head>
<body>
<embed id="plugin" type="application/x-webkit-test-webplugin-persistent"
accepts-touch="raw"></embed>
<div>Each event description above should be followed by 'TestPlugin: isPersistent'</div>
<script>
if (!window.testRunner || !window.eventSender) {
document.write("This test does not work in manual mode.");
} else {
testRunner.dumpAsText();
testRunner.waitUntilDone();
// Verify that the plugin is not destroyed.
plugin.setAttribute("display", "none");
// Force synchronous style recalc.
plugin.offsetTop;
var positionX = plugin.offsetLeft + 10;
var positionY = plugin.offsetTop + 10;
window.setTimeout(function () {
eventSender.addTouchPoint(positionX, positionY);
eventSender.touchStart();
eventSender.releaseTouchPoint(0);
eventSender.touchEnd();
testRunner.notifyDone();
}, 50);
}
</script>
</body>
</html>