Title: [291402] trunk/LayoutTests
Revision
291402
Author
[email protected]
Date
2022-03-17 05:54:57 -0700 (Thu, 17 Mar 2022)

Log Message

Fix for accessibility/aria-tab-xxx.html tests in isolated tree mode.
https://bugs.webkit.org/show_bug.cgi?id=237980
<rdar://problem/90392451>

Reviewed by Chris Fleizach.

these tests are flaky in isolated tree mode due to setting the focus to
the body is async.

* accessibility/aria-tab-role-on-buttons-expected.txt:
* accessibility/aria-tab-role-on-buttons.html:
* accessibility/aria-tab-roles.html:
* platform/glib/accessibility/aria-tab-roles-expected.txt:
* platform/mac/accessibility/aria-tab-role-on-buttons-expected.txt:
* platform/mac/accessibility/aria-tab-roles-expected.txt:
* platform/win/accessibility/aria-tab-role-on-buttons-expected.txt:
* platform/win/accessibility/aria-tab-roles-expected.txt:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (291401 => 291402)


--- trunk/LayoutTests/ChangeLog	2022-03-17 12:22:59 UTC (rev 291401)
+++ trunk/LayoutTests/ChangeLog	2022-03-17 12:54:57 UTC (rev 291402)
@@ -1,5 +1,25 @@
 2022-03-17  Andres Gonzalez  <[email protected]>
 
+        Fix for accessibility/aria-tab-xxx.html tests in isolated tree mode.
+        https://bugs.webkit.org/show_bug.cgi?id=237980
+        <rdar://problem/90392451>
+
+        Reviewed by Chris Fleizach.
+
+        these tests are flaky in isolated tree mode due to setting the focus to
+        the body is async.
+
+        * accessibility/aria-tab-role-on-buttons-expected.txt:
+        * accessibility/aria-tab-role-on-buttons.html:
+        * accessibility/aria-tab-roles.html:
+        * platform/glib/accessibility/aria-tab-roles-expected.txt:
+        * platform/mac/accessibility/aria-tab-role-on-buttons-expected.txt:
+        * platform/mac/accessibility/aria-tab-roles-expected.txt:
+        * platform/win/accessibility/aria-tab-role-on-buttons-expected.txt:
+        * platform/win/accessibility/aria-tab-roles-expected.txt:
+
+2022-03-17  Andres Gonzalez  <[email protected]>
+
         Make accessibility/roles-exposed.html faster.
         https://bugs.webkit.org/show_bug.cgi?id=237960
         <rdar://problem/90371580>

Modified: trunk/LayoutTests/accessibility/aria-tab-role-on-buttons-expected.txt (291401 => 291402)


--- trunk/LayoutTests/accessibility/aria-tab-role-on-buttons-expected.txt	2022-03-17 12:22:59 UTC (rev 291401)
+++ trunk/LayoutTests/accessibility/aria-tab-role-on-buttons-expected.txt	2022-03-17 12:54:57 UTC (rev 291402)
@@ -1,4 +1,3 @@
-Tab A  Tab B  Tab C
 This tests that the aria roles for tab and tablist work as expected for buttons.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
@@ -7,10 +6,11 @@
 tabList.role = AXRole: AXTabGroup
 tab1.role = AXRole: AXTab
 tab1.title = AXTitle: Tab A
-PASS tab1.childrenCount is 0
+tab1.childrenCount = 0
 tab2.role = AXRole: AXTab
 tab2.title = AXTitle: Tab B
+
 PASS successfullyParsed is true
 
 TEST COMPLETE
-
+Tab A  Tab B  Tab C

Modified: trunk/LayoutTests/accessibility/aria-tab-role-on-buttons.html (291401 => 291402)


--- trunk/LayoutTests/accessibility/aria-tab-role-on-buttons.html	2022-03-17 12:22:59 UTC (rev 291401)
+++ trunk/LayoutTests/accessibility/aria-tab-role-on-buttons.html	2022-03-17 12:54:57 UTC (rev 291402)
@@ -1,43 +1,35 @@
 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
 <html>
 <head>
-<script src=""
+<script src=""
 </head>
-<body id="body">
+<body>
 
-<div role="tablist">
+<div role="tablist" id="tablist">
     <button id="tab a" role="tab" aria-selected="true">Tab A</button>
     <button id="tab b" role="tab" aria-selected="false">Tab B</button>
     <button id="tab c" role="tab" aria-selected="false">Tab C</button>
 </div>
 
-<p id="description"></p>
-<div id="console"></div>
-
 <script>
-
     description("This tests that the aria roles for tab and tablist work as expected for buttons.");
 
     if (window.accessibilityController) {
+        let output = "";
 
-          var body = document.getElementById("body");
-          body.focus();
+        let tabList = accessibilityController.accessibleElementById("tablist");
+        let tab1 = tabList.childAtIndex(0);
+        let tab2 = tabList.childAtIndex(1);
 
-          var tabList = accessibilityController.focusedElement.childAtIndex(0);
-          var tab1 = tabList.childAtIndex(0);
-          var tab2 = tabList.childAtIndex(1);
-          var tabPanel = accessibilityController.focusedElement.childAtIndex(1);
+        output += `tabList.role = ${tabList.role}\n`;
+        output += `tab1.role = ${tab1.role}\n`;
+        output += `tab1.title = ${tab1.title}\n`;
+        output += `tab1.childrenCount = ${tab1.childrenCount}\n`;
+        output += `tab2.role = ${tab2.role}\n`;
+        output += `tab2.title = ${tab2.title}\n`;
 
-          debug("tabList.role = " + tabList.role);
-          debug("tab1.role = " + tab1.role);
-          debug("tab1.title = " + tab1.title);
-          shouldBe("tab1.childrenCount", "0");
-          debug("tab2.role = " + tab2.role);
-          debug("tab2.title = " + tab2.title);
+        debug(output);
     }
-
 </script>
-
-<script src=""
 </body>
 </html>

Modified: trunk/LayoutTests/accessibility/aria-tab-roles.html (291401 => 291402)


--- trunk/LayoutTests/accessibility/aria-tab-roles.html	2022-03-17 12:22:59 UTC (rev 291401)
+++ trunk/LayoutTests/accessibility/aria-tab-roles.html	2022-03-17 12:54:57 UTC (rev 291402)
@@ -1,49 +1,41 @@
 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
 <html>
 <head>
-<script src=""
+<script src=""
 </head>
-<body id="body">
+<body>
 
 <ul id="tablist_1" role="tablist">
-<li id="tab_1" role="tab" tabindex="0" class="">Crust</li>
-<li id="tab_2" role="tab" tabindex="0" class="">Veges</li>
+    <li id="tab_1" role="tab" tabindex="0" class="">Crust</li>
+    <li id="tab_2" role="tab" tabindex="0" class="">Veges</li>
 </ul>
 
-<div id="panel_1" role="tabpanel" aria-labelledby="tab_1" >
-<h3>Select Crust</h3>
+<div id="panel_1" role="tabpanel" aria-labelledby="tab_1">
+    <h3>Select Crust</h3>
 </div>
 
-
-<p id="description"></p>
-<div id="console"></div>
-
 <script>
-
     description("This tests that the aria roles for tab, tabpanel and tablist work as expected correctly.");
 
     if (window.accessibilityController) {
+        let output = "";
 
-          var body = document.getElementById("body");
-          body.focus();
+        let tabList = accessibilityController.accessibleElementById("tablist_1");
+        let tab1 = tabList.childAtIndex(0);
+        let tab2 = tabList.childAtIndex(1);
+        let tabPanel = accessibilityController.accessibleElementById("panel_1");
 
-          var tabList = accessibilityController.focusedElement.childAtIndex(0);
-          var tab1 = tabList.childAtIndex(0);
-          var tab2 = tabList.childAtIndex(1);
-          var tabPanel = accessibilityController.focusedElement.childAtIndex(1);
+        output += `tabList.role = ${tabList.role}\n`;
+        output += `tab1.role = ${tab1.role}\n`;
+        output += `tab1.title = ${tab1.title}\n`;
+        output += `tab1.childrenCount = ${tab1.childrenCount}\n`;
+        output += `tab2.role = ${tab2.role}\n`;
+        output += `tab2.title = ${tab2.title}\n`;
+        output += `tabPanel.role = ${tabPanel.role}\n`;
+        output += `tabPanel.subrole = ${tabPanel.subrole}\n`;
 
-          debug("tabList.role = " + tabList.role);
-          debug("tab1.role = " + tab1.role);
-          debug("tab1.title = " + tab1.title);
-          shouldBe("tab1.childrenCount", "0");
-          debug("tab2.role = " + tab2.role);
-          debug("tab2.title = " + tab2.title);
-          debug("tabPanel.role = " + tabPanel.role);
-          debug("tabPanel.subrole = " + tabPanel.subrole);
+        debug(output);
     }
-
 </script>
-
-<script src=""
 </body>
 </html>

Modified: trunk/LayoutTests/platform/glib/accessibility/aria-tab-roles-expected.txt (291401 => 291402)


--- trunk/LayoutTests/platform/glib/accessibility/aria-tab-roles-expected.txt	2022-03-17 12:22:59 UTC (rev 291401)
+++ trunk/LayoutTests/platform/glib/accessibility/aria-tab-roles-expected.txt	2022-03-17 12:54:57 UTC (rev 291402)
@@ -1,7 +1,3 @@
-Crust
-Veges
-Select Crust
-
 This tests that the aria roles for tab, tabpanel and tablist work as expected correctly.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
@@ -10,12 +6,15 @@
 tabList.role = AXRole: AXTabGroup
 tab1.role = AXRole: AXTab
 tab1.title = AXTitle: Crust
-PASS tab1.childrenCount is 0
+tab1.childrenCount = 0
 tab2.role = AXRole: AXTab
 tab2.title = AXTitle: Veges
 tabPanel.role = AXRole: AXScrollArea
 tabPanel.subrole =
+
 PASS successfullyParsed is true
 
 TEST COMPLETE
-
+Crust
+Veges
+Select Crust

Modified: trunk/LayoutTests/platform/mac/accessibility/aria-tab-role-on-buttons-expected.txt (291401 => 291402)


--- trunk/LayoutTests/platform/mac/accessibility/aria-tab-role-on-buttons-expected.txt	2022-03-17 12:22:59 UTC (rev 291401)
+++ trunk/LayoutTests/platform/mac/accessibility/aria-tab-role-on-buttons-expected.txt	2022-03-17 12:54:57 UTC (rev 291402)
@@ -1,4 +1,3 @@
-Tab A  Tab B  Tab C
 This tests that the aria roles for tab and tablist work as expected for buttons.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
@@ -7,10 +6,11 @@
 tabList.role = AXRole: AXTabGroup
 tab1.role = AXRole: AXRadioButton
 tab1.title = AXTitle: Tab A
-PASS tab1.childrenCount is 0
+tab1.childrenCount = 0
 tab2.role = AXRole: AXRadioButton
 tab2.title = AXTitle: Tab B
+
 PASS successfullyParsed is true
 
 TEST COMPLETE
-
+Tab A  Tab B  Tab C

Modified: trunk/LayoutTests/platform/mac/accessibility/aria-tab-roles-expected.txt (291401 => 291402)


--- trunk/LayoutTests/platform/mac/accessibility/aria-tab-roles-expected.txt	2022-03-17 12:22:59 UTC (rev 291401)
+++ trunk/LayoutTests/platform/mac/accessibility/aria-tab-roles-expected.txt	2022-03-17 12:54:57 UTC (rev 291402)
@@ -1,7 +1,3 @@
-Crust
-Veges
-Select Crust
-
 This tests that the aria roles for tab, tabpanel and tablist work as expected correctly.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
@@ -10,12 +6,15 @@
 tabList.role = AXRole: AXTabGroup
 tab1.role = AXRole: AXRadioButton
 tab1.title = AXTitle: Crust
-PASS tab1.childrenCount is 0
+tab1.childrenCount = 0
 tab2.role = AXRole: AXRadioButton
 tab2.title = AXTitle: Veges
 tabPanel.role = AXRole: AXGroup
 tabPanel.subrole = AXSubrole: AXTabPanel
+
 PASS successfullyParsed is true
 
 TEST COMPLETE
-
+Crust
+Veges
+Select Crust

Modified: trunk/LayoutTests/platform/win/accessibility/aria-tab-role-on-buttons-expected.txt (291401 => 291402)


--- trunk/LayoutTests/platform/win/accessibility/aria-tab-role-on-buttons-expected.txt	2022-03-17 12:22:59 UTC (rev 291401)
+++ trunk/LayoutTests/platform/win/accessibility/aria-tab-role-on-buttons-expected.txt	2022-03-17 12:54:57 UTC (rev 291402)
@@ -1,4 +1,3 @@
-Tab A  Tab B  Tab C
 This tests that the aria roles for tab and tablist work as expected for buttons.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
@@ -7,10 +6,11 @@
 tabList.role = AXRole: AXTabGroup
 tab1.role = AXRole: AXTab
 tab1.title = AXTitle: Tab A
-PASS tab1.childrenCount is 0
+tab1.childrenCount = 0
 tab2.role = AXRole: AXTab
 tab2.title = AXTitle: Tab B
+
 PASS successfullyParsed is true
 
 TEST COMPLETE
-
+Tab A  Tab B  Tab C

Modified: trunk/LayoutTests/platform/win/accessibility/aria-tab-roles-expected.txt (291401 => 291402)


--- trunk/LayoutTests/platform/win/accessibility/aria-tab-roles-expected.txt	2022-03-17 12:22:59 UTC (rev 291401)
+++ trunk/LayoutTests/platform/win/accessibility/aria-tab-roles-expected.txt	2022-03-17 12:54:57 UTC (rev 291402)
@@ -1,7 +1,3 @@
-Crust
-Veges
-Select Crust
-
 This tests that the aria roles for tab, tabpanel and tablist work as expected correctly.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
@@ -10,12 +6,15 @@
 tabList.role = AXRole: AXTabGroup
 tab1.role = AXRole: AXTab
 tab1.title = AXTitle: Crust
-PASS tab1.childrenCount is 0
+tab1.childrenCount = 0
 tab2.role = AXRole: AXTab
 tab2.title = AXTitle: Veges
 tabPanel.role = AXRole: AXGroup
 tabPanel.subrole =
+
 PASS successfullyParsed is true
 
 TEST COMPLETE
-
+Crust
+Veges
+Select Crust
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to