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

Side by Side Diff: LayoutTests/plugins/can-create-without-renderer.html

Issue 23618022: BrowserPlugin/WebView - Move plugin lifetime to DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add tests, make plugin creation synchronous. Created 7 years 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 body {
5 height: 2000px;
6 }
7 #plugin {
8 position: absolute;
9 top: 500px;
10 width: 150px;
11 height: 150px;
12 }
13 </style>
14 </head>
15
16 <body>
17 <div id="pluginContainer"></div>
18 <div>Each line below should start with 'Pass':</div>
19 <div id="result1"></div>
20 <script>
21
22 if (!window.testRunner) {
23 document.write("This test does not work in manual mode.");
24 } else {
25 testRunner.dumpAsText();
26
27 var plugin = document.createElement("object");
28 plugin.setAttribute("width", 300);
29 plugin.setAttribute("height", 200);
30 plugin.setAttribute("type",
31 "application/x-webkit-test-webplugin-can-create-without-renderer");
32
33 // This should cause a synchronous style re-calc.
34 document.body.offsetTop;
eseidel 2013/12/12 20:40:13 Do you still need this?
wjmaclean 2013/12/12 22:31:15 I'll check ... nope, seems ok without (we *shouldn
35
36 if ((plugin.canCreateWithoutRenderer != undefined) && plugin.canCreateWi thoutRenderer)
37 result1.innerHTML = "Pass: plugin exists without attachment to rendere r.";
38 else
39 result1.innerHTML = "Fail: plugin does not exist.";
40 }
41
42 </script>
43 </body>
44 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/plugins/can-create-without-renderer-expected.txt » ('j') | LayoutTests/plugins/plugin-persists.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698