Plugin Snapshotting: Auto-start dominant plugins
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 23 Mar 2013 00:00:28 +0000 (00:00 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 23 Mar 2013 00:00:28 +0000 (00:00 +0000)
​https://bugs.webkit.org/show_bug.cgi?id=113111
<rdar://problem/13475726>

Reviewed by Dean Jackson.

Add a test for http://trac.webkit.org/changeset/146679.

* platform/mac-wk2/plugins/snapshotting/autoplay-dominant-expected.txt: Added.
* plugins/snapshotting/autoplay-dominant.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@146685 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/platform/mac-wk2/plugins/snapshotting/autoplay-dominant-expected.txt [new file with mode: 0644]
LayoutTests/plugins/snapshotting/autoplay-dominant.html [new file with mode: 0644]

index 68a7380..1a8c500 100644 (file)
@@ -1,3 +1,16 @@
+2013-03-22  Tim Horton  <timothy_horton@apple.com>
+
+        Plugin Snapshotting: Auto-start dominant plugins
+        ​https://bugs.webkit.org/show_bug.cgi?id=113111
+        <rdar://problem/13475726>
+
+        Reviewed by Dean Jackson.
+
+        Add a test for http://trac.webkit.org/changeset/146679.
+
+        * platform/mac-wk2/plugins/snapshotting/autoplay-dominant-expected.txt: Added.
+        * plugins/snapshotting/autoplay-dominant.html: Added.
+
 2013-03-22  Tony Chang  <tony@chromium.org>
 
         REGRESSION (r146272): layout issues for flex boxes that have -webkit-flex-wrap: wrap
 2013-03-22  Tony Chang  <tony@chromium.org>
 
         REGRESSION (r146272): layout issues for flex boxes that have -webkit-flex-wrap: wrap
diff --git a/LayoutTests/platform/mac-wk2/plugins/snapshotting/autoplay-dominant-expected.txt b/LayoutTests/platform/mac-wk2/plugins/snapshotting/autoplay-dominant-expected.txt
new file mode 100644 (file)
index 0000000..24a7de8
--- /dev/null
@@ -0,0 +1,12 @@
+layer at (0,0) size 785x650
+  RenderView at (0,0) size 785x600
+layer at (0,0) size 785x650
+  RenderBlock {HTML} at (0,0) size 785x650
+    RenderBody {BODY} at (8,8) size 769x634
+      RenderBlock {P} at (0,0) size 769x18
+        RenderText {#text} at (0,0) size 334x18
+          text run at (0,0) width 334: "This test's dominant plugin should play automatically"
+      RenderBlock (anonymous) at (0,34) size 769x600
+        RenderText {#text} at (0,0) size 0x0
+layer at (8,42) size 600x600
+  RenderEmbeddedObject {EMBED} at (0,0) size 600x600
diff --git a/LayoutTests/plugins/snapshotting/autoplay-dominant.html b/LayoutTests/plugins/snapshotting/autoplay-dominant.html
new file mode 100644 (file)
index 0000000..a5fb6fb
--- /dev/null
@@ -0,0 +1,12 @@
+<p>This test's dominant plugin should play automatically</p>
+<script>
+if (window.testRunner) {
+    window.internals.settings.setPlugInSnapshottingEnabled(true);
+    window.internals.settings.setMaximumPlugInSnapshotAttempts(0);
+    testRunner.waitUntilDone();
+    setTimeout(function () {
+        testRunner.notifyDone();
+    }, 500);
+}
+</script>
+<embed src="../resources/simple_blank.swf" width="600" height="600"></embed>