Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Side by Side Diff: LayoutTests/plugins/plugin-persists.html

Issue 23618022: BrowserPlugin/WebView - Move plugin lifetime to DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Handle shared-renderer case. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <style>
4 #plugin {
5 width: 150px;
6 height: 150px;
7 }
8 </style>
9 </head>
10
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: isPersisten t'</div>
15 <script>
16
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();
22
23 // Verify that the plugin is not destroyed.
24 plugin.setAttribute("display", "none");
25 // Force synchronous style recalc.
26 plugin.offsetTop;
27
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();
35
36 testRunner.notifyDone();
37 }, 50);
38 }
39
40 </script>
41 </body>
42 </html>
OLDNEW
« no previous file with comments | « LayoutTests/plugins/can-create-without-renderer-expected.txt ('k') | LayoutTests/plugins/plugin-persists-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698