Title: [224893] trunk/LayoutTests
Revision
224893
Author
n_w...@apple.com
Date
2017-11-15 12:02:04 -0800 (Wed, 15 Nov 2017)

Log Message

[GTK] accessibility/accessibility-object-model.html fails
https://bugs.webkit.org/show_bug.cgi?id=179723

Reviewed by Chris Fleizach.

Updated the test to support different platforms.

* accessibility/accessibility-object-model-expected.txt:
* accessibility/accessibility-object-model.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (224892 => 224893)


--- trunk/LayoutTests/ChangeLog	2017-11-15 19:50:41 UTC (rev 224892)
+++ trunk/LayoutTests/ChangeLog	2017-11-15 20:02:04 UTC (rev 224893)
@@ -1,3 +1,15 @@
+2017-11-15  Nan Wang  <n_w...@apple.com>
+
+        [GTK] accessibility/accessibility-object-model.html fails
+        https://bugs.webkit.org/show_bug.cgi?id=179723
+
+        Reviewed by Chris Fleizach.
+
+        Updated the test to support different platforms.
+
+        * accessibility/accessibility-object-model-expected.txt:
+        * accessibility/accessibility-object-model.html:
+
 2017-11-15  Chris Dumez  <cdu...@apple.com>
 
         Unreviewed, fix tests introduced in r224880.

Modified: trunk/LayoutTests/accessibility/accessibility-object-model-expected.txt (224892 => 224893)


--- trunk/LayoutTests/accessibility/accessibility-object-model-expected.txt	2017-11-15 19:50:41 UTC (rev 224892)
+++ trunk/LayoutTests/accessibility/accessibility-object-model-expected.txt	2017-11-15 20:02:04 UTC (rev 224893)
@@ -13,7 +13,7 @@
 
 ARIA attributes should not be reflected into AOM properties.
 PASS axButton.role is 'AXRole: AXCheckBox'
-PASS axButton.description is 'AXDescription: label'
+PASS platformValueForW3CName(axButton) is "label"
 PASS button.accessibleNode.role is null
 PASS button.accessibleNode.label is null
 
@@ -21,7 +21,7 @@
 PASS button.accessibleNode.role is 'slider'
 PASS button.accessibleNode.label is 'AOM Label'
 PASS axButton.role is 'AXRole: AXSlider'
-PASS axButton.description is 'AXDescription: AOM Label'
+PASS platformValueForW3CName(axButton) is "AOM Label"
 
 Setting some of the AOM properties should be able to make an element accessible.
 PASS axParagraph == null || axParagraph == undefined is true

Modified: trunk/LayoutTests/accessibility/accessibility-object-model.html (224892 => 224893)


--- trunk/LayoutTests/accessibility/accessibility-object-model.html	2017-11-15 19:50:41 UTC (rev 224892)
+++ trunk/LayoutTests/accessibility/accessibility-object-model.html	2017-11-15 20:02:04 UTC (rev 224893)
@@ -45,7 +45,7 @@
         button.setAttribute("role", "checkbox");
         button.setAttribute("aria-label", "label");
         shouldBe("axButton.role", "'AXRole: AXCheckBox'");
-        shouldBe("axButton.description", "'AXDescription: label'");
+        shouldBeEqualToString("platformValueForW3CName(axButton)", "label");
         
         // AOM properties should be null even if we have set ARIA attributes.
         shouldBeNull("button.accessibleNode.role");
@@ -67,7 +67,7 @@
         
         // The AOM property values should override ARIA attributes.
         shouldBe("axButton.role", "'AXRole: AXSlider'");
-        shouldBe("axButton.description", "'AXDescription: AOM Label'");
+        shouldBeEqualToString("platformValueForW3CName(axButton)", "AOM Label");
     }
     
     function testBecomeAccessible() {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to