Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / plugins / plugin-persists.html
blob84d0818360f498cef3c61880b2ca66eb0836f928
1 <html>
2 <head>
3 <style>
4 #plugin {
5 width: 150px;
6 height: 150px;
8 </style>
9 </head>
11 <body>
12 <embed id="plugin" type="application/x-webkit-test-webplugin-persistent"
13 accepts-touch="raw"></embed>
14 <div>Each event description above should be followed by 'TestPlugin: isPersistent'</div>
15 <script>
17 if (!window.testRunner || !window.eventSender) {
18 document.write("This test does not work in manual mode.");
19 } else {
20 testRunner.dumpAsText();
21 testRunner.waitUntilDone();
23 // Verify that the plugin is not destroyed.
24 plugin.setAttribute("display", "none");
25 // Force synchronous style recalc.
26 plugin.offsetTop;
28 var positionX = plugin.offsetLeft + 10;
29 var positionY = plugin.offsetTop + 10;
30 window.setTimeout(function () {
31 eventSender.addTouchPoint(positionX, positionY);
32 eventSender.touchStart();
33 eventSender.releaseTouchPoint(0);
34 eventSender.touchEnd();
36 testRunner.notifyDone();
37 }, 50);
40 </script>
41 </body>
42 </html>