fullscreen/full-screen-plugin.html is very flaky on Yosemite WK2
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Feb 2015 01:25:17 +0000 (01:25 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Feb 2015 01:25:17 +0000 (01:25 +0000)
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:

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

LayoutTests/ChangeLog
LayoutTests/fullscreen/full-screen-plugin.html

index e85398f..ca28254 100644 (file)
@@ -1,3 +1,14 @@
+2015-02-08  Alexey Proskuryakov  <ap@apple.com>
+
+        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  <darin@apple.com>
 
         Remove the SVG instance tree
index 43c626b..15fcdfc 100644 (file)
@@ -11,7 +11,8 @@ if (window.testRunner) {
 </div>
 
 <script>
-onload = function() {
+function test()
+{
     var callback;
     var fullscreenChanged = function(event)
     {
@@ -53,4 +54,16 @@ onload = function() {
     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>