Title: [170717] trunk/LayoutTests
Revision
170717
Author
[email protected]
Date
2014-07-02 13:22:04 -0700 (Wed, 02 Jul 2014)

Log Message

REGRESSION(160908): vube.com video won't play after going into and out of fullscreen
https://bugs.webkit.org/show_bug.cgi?id=134489

Reviewed by Zalan Bujtas.

* fullscreen/full-screen-plugin-expected.txt: Added.
* fullscreen/full-screen-plugin.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (170716 => 170717)


--- trunk/LayoutTests/ChangeLog	2014-07-02 20:19:06 UTC (rev 170716)
+++ trunk/LayoutTests/ChangeLog	2014-07-02 20:22:04 UTC (rev 170717)
@@ -1,3 +1,13 @@
+2014-07-01  Antti Koivisto  <[email protected]>
+
+        REGRESSION(160908): vube.com video won't play after going into and out of fullscreen
+        https://bugs.webkit.org/show_bug.cgi?id=134489
+
+        Reviewed by Zalan Bujtas.
+
+        * fullscreen/full-screen-plugin-expected.txt: Added.
+        * fullscreen/full-screen-plugin.html: Added.
+
 2014-07-02  Dean Jackson  <[email protected]>
 
         Skip fast/canvas/webgl/tex-image-and-sub-image-2d-with-potentially-subsampled-image.html

Added: trunk/LayoutTests/fullscreen/full-screen-plugin-expected.txt (0 => 170717)


--- trunk/LayoutTests/fullscreen/full-screen-plugin-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/fullscreen/full-screen-plugin-expected.txt	2014-07-02 20:22:04 UTC (rev 170717)
@@ -0,0 +1,3 @@
+Test that plugin doesn't restart when taking it to full screen and back.
+SUCCESS
+

Added: trunk/LayoutTests/fullscreen/full-screen-plugin.html (0 => 170717)


--- trunk/LayoutTests/fullscreen/full-screen-plugin.html	                        (rev 0)
+++ trunk/LayoutTests/fullscreen/full-screen-plugin.html	2014-07-02 20:22:04 UTC (rev 170717)
@@ -0,0 +1,55 @@
+<script>
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.waitUntilDone();
+}
+</script>
+<div>
+    <div>Test that plugin doesn't restart when taking it to full screen and back.</div>
+    <div id="result">Test didn't run'</div>
+    <embed id="plugin" type="application/x-webkit-test-netscape" width="200" height="200"></embed>
+</div>
+
+<script>
+if ("webkitRequestFullScreen" in Element.prototype) {
+    var callback;
+    var fullscreenChanged = function(event)
+    {
+        if (callback)
+            callback(event)
+    };
+    document.addEventListener('webkitfullscreenchange', fullscreenChanged);
+
+    document.body.offsetTop;
+    var plugin = document.getElementById('plugin');
+    var testObject = plugin.testObject;
+
+    var spanEnteredFullScreen = function(event) {
+        setTimeout(function () {
+            callback = function() {
+
+                document.body.offsetTop;
+                try {
+                    // This will throw if going to fullscreen and back has restarted the plugin.
+                    testObject.property = 'foo';
+                    document.getElementById('result').innerHTML = 'SUCCESS';
+                } catch (e) {
+                    document.getElementById('result').innerHTML = 'FAIL';
+                }
+
+                if (window.testRunner)
+                    testRunner.notifyDone();
+            }
+            document.webkitCancelFullScreen();
+        }, 0);
+    };
+
+    callback = spanEnteredFullScreen;
+
+    document.addEventListener('keydown', function () {
+        plugin.webkitRequestFullScreen();
+    });
+    if (window.eventSender)
+        eventSender.keyDown('a');
+}
+</script>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to