Flaky Test: svg/custom/tabindex-order.html
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Aug 2019 21:51:22 +0000 (21:51 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Aug 2019 21:51:22 +0000 (21:51 +0000)
https://bugs.webkit.org/show_bug.cgi?id=201294

Reviewed by Chris Dumez.

Make the backward sequential navigation case more robust against platform differences.

* svg/custom/tabindex-order.html:

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

LayoutTests/ChangeLog
LayoutTests/svg/custom/tabindex-order.html

index d59466a..6708a99 100644 (file)
@@ -1,3 +1,14 @@
+2019-08-29  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Flaky Test: svg/custom/tabindex-order.html
+        https://bugs.webkit.org/show_bug.cgi?id=201294
+
+        Reviewed by Chris Dumez.
+
+        Make the backward sequential navigation case more robust against platform differences.
+
+        * svg/custom/tabindex-order.html:
+
 2019-08-29  Youenn Fablet  <youenn@apple.com>
 
         Skip fetch event dispatching if no fetch event handler is added at script evaluation time
index 5e38cf8..a240f4d 100644 (file)
             addEventListenersToRects(rects);
 
             log('Tabbing forward....\n');
-            let tabCount = 0;
             for (var i = 0; i < rects.length; ++i) {
                 if (i > 1 && document.activeElement.id == 'a')
                     break;
                 dispatchTabPress(document, false);
-                tabCount++;
             }
 
             lastFocusedElement.blur();
 
             log('\nTabbing backward....\n');
-            previousActiveElement = null;
-            for (var i = 0; i < tabCount; ++i)
+            for (var i = 0; i < rects.length; ++i) {
+                if (i > 1 && document.activeElement.id == 'k')
+                    break;
                 dispatchTabPress(document, true);
+            }
 
             log('\nTest finished\n');
         }