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

Unified 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, 9 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 side-by-side diff with in-line comments
Download patch
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>
« 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