| Index: LayoutTests/plugins/plugin-persists.html
|
| diff --git a/LayoutTests/plugins/plugin-persists.html b/LayoutTests/plugins/plugin-persists.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..84d0818360f498cef3c61880b2ca66eb0836f928
|
| --- /dev/null
|
| +++ b/LayoutTests/plugins/plugin-persists.html
|
| @@ -0,0 +1,42 @@
|
| +<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>
|
|
|