Title: [138325] trunk/LayoutTests
Revision
138325
Author
dmazz...@google.com
Date
2012-12-20 16:58:13 -0800 (Thu, 20 Dec 2012)

Log Message

accessibility/svg-remote-element.html is flaky (times out)
https://bugs.webkit.org/show_bug.cgi?id=105587

Reviewed by Chris Fleizach.

Avoid race condition where the test would never run if the
SVG image was already loaded before the load event listener
gets added.

* accessibility/svg-remote-element.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (138324 => 138325)


--- trunk/LayoutTests/ChangeLog	2012-12-21 00:51:18 UTC (rev 138324)
+++ trunk/LayoutTests/ChangeLog	2012-12-21 00:58:13 UTC (rev 138325)
@@ -1,3 +1,16 @@
+2012-12-20  Dominic Mazzoni  <dmazz...@google.com>
+
+        accessibility/svg-remote-element.html is flaky (times out)
+        https://bugs.webkit.org/show_bug.cgi?id=105587
+
+        Reviewed by Chris Fleizach.
+
+        Avoid race condition where the test would never run if the
+        SVG image was already loaded before the load event listener
+        gets added.
+
+        * accessibility/svg-remote-element.html:
+
 2012-12-20  Emil A Eklund  <e...@chromium.org>
 
         Unreviewed, remove css3/flexbox/flex-algorithm.html from efl, gtk and qt TestExpectations file.

Modified: trunk/LayoutTests/accessibility/svg-remote-element.html (138324 => 138325)


--- trunk/LayoutTests/accessibility/svg-remote-element.html	2012-12-21 00:51:18 UTC (rev 138324)
+++ trunk/LayoutTests/accessibility/svg-remote-element.html	2012-12-21 00:58:13 UTC (rev 138325)
@@ -3,7 +3,7 @@
 <body>
 <script src=""
 
-<img tabindex="0" id="svg-image" src="" alt="interactive SVG" >
+<img tabindex="0" id="svg-image" alt="interactive SVG" >
 
 <div id="console"></div>
 <script>
@@ -21,10 +21,6 @@
     return element.clickPointY - element.height/2;
 }
 
-if (window.accessibilityController) {
-    document.getElementById("svg-image").addEventListener("load", runAXTest);
-}
-
 function runAXTest() {    
     var container = accessibilityController.accessibleElementById("svg-image");
 
@@ -64,6 +60,11 @@
     finishJSTest();
 }
 
+if (window.accessibilityController) {
+    document.getElementById("svg-image").addEventListener("load", runAXTest);
+}
+document.getElementById("svg-image").src = ""
+
 </script>
 
 <script src=""
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to