Title: [171192] trunk/LayoutTests
Revision
171192
Author
[email protected]
Date
2014-07-17 12:20:31 -0700 (Thu, 17 Jul 2014)

Log Message

Add test for r169820.
        https://bugs.webkit.org/show_bug.cgi?id=135002.

        Reviewed by Dean Jackson.

        * platform/mac-wk2/plugins/snapshotting/autoplay-dominant-blank-plugin-moved-into-view-expected.txt: Added.
        * plugins/snapshotting/autoplay-dominant-blank-plugin-moved-into-view.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (171191 => 171192)


--- trunk/LayoutTests/ChangeLog	2014-07-17 19:19:37 UTC (rev 171191)
+++ trunk/LayoutTests/ChangeLog	2014-07-17 19:20:31 UTC (rev 171192)
@@ -1,3 +1,13 @@
+2014-07-16  Roger Fong  <[email protected]>
+
+        Add test for r169820.
+        https://bugs.webkit.org/show_bug.cgi?id=135002.
+
+        Reviewed by Dean Jackson.
+
+        * platform/mac-wk2/plugins/snapshotting/autoplay-dominant-blank-plugin-moved-into-view-expected.txt: Added.
+        * plugins/snapshotting/autoplay-dominant-blank-plugin-moved-into-view.html: Added.
+
 2014-07-17  Alexey Proskuryakov  <[email protected]>
 
         plugins/quicktime-plugin-replacement.html is flaky

Added: trunk/LayoutTests/platform/mac-wk2/plugins/snapshotting/autoplay-dominant-blank-plugin-moved-into-view-expected.txt (0 => 171192)


--- trunk/LayoutTests/platform/mac-wk2/plugins/snapshotting/autoplay-dominant-blank-plugin-moved-into-view-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac-wk2/plugins/snapshotting/autoplay-dominant-blank-plugin-moved-into-view-expected.txt	2014-07-17 19:20:31 UTC (rev 171192)
@@ -0,0 +1,4 @@
+This tests that a dominant blank plugin that starts off screen and is moved in to view autoplays
+
+PASS
+

Added: trunk/LayoutTests/plugins/snapshotting/autoplay-dominant-blank-plugin-moved-into-view.html (0 => 171192)


--- trunk/LayoutTests/plugins/snapshotting/autoplay-dominant-blank-plugin-moved-into-view.html	                        (rev 0)
+++ trunk/LayoutTests/plugins/snapshotting/autoplay-dominant-blank-plugin-moved-into-view.html	2014-07-17 19:20:31 UTC (rev 171192)
@@ -0,0 +1,20 @@
+<p>This tests that a dominant blank plugin that starts off screen and is moved in to view autoplays</p>
+<div id="result">FAIL</div>
+<script>
+    if (window.testRunner) {
+        testRunner.waitUntilDone();
+        testRunner.dumpAsText();
+        setTimeout(function() {
+            var embed = document.getElementById("plugin");
+            embed.style.left = "0px";
+            setTimeout(function () {
+                var result = document.getElementById("result");
+                var embed = document.getElementById("plugin");
+                if (!internals.isPluginSnapshotted(embed))
+                    result.innerHTML = "PASS";
+                testRunner.notifyDone();
+            }, 500); 
+        }, 500 );
+    }
+</script>
+<embed id="plugin" src="" width="600" height="600" style="position:relative; left:-600px;"></embed>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to