Skip to content
Permalink
Browse files
[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:


Canonical link: https://commits.webkit.org/195773@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@224893 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
Nan Wang committed Nov 15, 2017
1 parent d86bbec commit 71c2b3fe5e62fab198abcd3fa805de70aa11b62c
Showing with 16 additions and 4 deletions.
  1. +12 −0 LayoutTests/ChangeLog
  2. +2 −2 LayoutTests/accessibility/accessibility-object-model-expected.txt
  3. +2 −2 LayoutTests/accessibility/accessibility-object-model.html
@@ -1,3 +1,15 @@
2017-11-15 Nan Wang <n_wang@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 <cdumez@apple.com>

Unreviewed, fix tests introduced in r224880.
@@ -13,15 +13,15 @@ PASS button.accessibleNode.foo is undefined

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

Test setting AOM properties. And make sure AOM takes precedence.
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
@@ -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() {

0 comments on commit 71c2b3f

Please sign in to comment.