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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/plugins/can-create-without-renderer.html
diff --git a/LayoutTests/plugins/can-create-without-renderer.html b/LayoutTests/plugins/can-create-without-renderer.html
new file mode 100644
index 0000000000000000000000000000000000000000..0c4668b208bac7231c92c1ee08dc9d04e5696ff3
--- /dev/null
+++ b/LayoutTests/plugins/can-create-without-renderer.html
@@ -0,0 +1,44 @@
+<html>
+<head>
+<style>
+ body {
+ height: 2000px;
+ }
+ #plugin {
+ position: absolute;
+ top: 500px;
+ width: 150px;
+ height: 150px;
+ }
+</style>
+</head>
+
+<body>
+<div id="pluginContainer"></div>
+<div>Each line below should start with 'Pass':</div>
+<div id="result1"></div>
+<script>
+
+ if (!window.testRunner) {
+ document.write("This test does not work in manual mode.");
+ } else {
+ testRunner.dumpAsText();
+
+ var plugin = document.createElement("object");
+ plugin.setAttribute("width", 300);
+ plugin.setAttribute("height", 200);
+ plugin.setAttribute("type",
+ "application/x-webkit-test-webplugin-can-create-without-renderer");
+
+ // This should cause a synchronous style re-calc.
+ 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
+
+ if ((plugin.canCreateWithoutRenderer != undefined) && plugin.canCreateWithoutRenderer)
+ result1.innerHTML = "Pass: plugin exists without attachment to renderer.";
+ else
+ result1.innerHTML = "Fail: plugin does not exist.";
+ }
+
+</script>
+</body>
+</html>
« 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