Title: [179811] trunk/LayoutTests
Revision
179811
Author
[email protected]
Date
2015-02-08 17:25:17 -0800 (Sun, 08 Feb 2015)

Log Message

fullscreen/full-screen-plugin.html is very flaky on Yosemite WK2
https://bugs.webkit.org/show_bug.cgi?id=141364

Reviewed by Sam Weinig.

Make the test wait for the plug-in to become available.

* fullscreen/full-screen-plugin.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (179810 => 179811)


--- trunk/LayoutTests/ChangeLog	2015-02-09 01:13:35 UTC (rev 179810)
+++ trunk/LayoutTests/ChangeLog	2015-02-09 01:25:17 UTC (rev 179811)
@@ -1,3 +1,14 @@
+2015-02-08  Alexey Proskuryakov  <[email protected]>
+
+        fullscreen/full-screen-plugin.html is very flaky on Yosemite WK2
+        https://bugs.webkit.org/show_bug.cgi?id=141364
+
+        Reviewed by Sam Weinig.
+
+        Make the test wait for the plug-in to become available.
+
+        * fullscreen/full-screen-plugin.html:
+
 2015-02-08  Darin Adler  <[email protected]>
 
         Remove the SVG instance tree

Modified: trunk/LayoutTests/fullscreen/full-screen-plugin.html (179810 => 179811)


--- trunk/LayoutTests/fullscreen/full-screen-plugin.html	2015-02-09 01:13:35 UTC (rev 179810)
+++ trunk/LayoutTests/fullscreen/full-screen-plugin.html	2015-02-09 01:25:17 UTC (rev 179811)
@@ -11,7 +11,8 @@
 </div>
 
 <script>
-_onload_ = function() {
+function test()
+{
     var callback;
     var fullscreenChanged = function(event)
     {
@@ -53,4 +54,16 @@
     if (window.eventSender)
         eventSender.keyDown('a');
 }
+
+function checkForPlugin()
+{
+    var plugin = document.getElementById('plugin');
+    if (plugin.testObject)
+        test();
+    else
+        setTimeout(checkForPlugin, 100);
+}
+
+window._onload_ = checkForPlugin;
+
 </script>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to