Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r223126 - AX: [ATK] STATE_CHECKABLE should be removed from radi…
…o buttons in radiogroups with aria-readonly="true" https://bugs.webkit.org/show_bug.cgi?id=177931 Reviewed by Chris Fleizach. Source/WebCore: Add a check in canSetValueAttribute() for readonly radiogroup ancestors of radio buttons. Test: accessibility/gtk/aria-readonly-radiogroup.html * accessibility/AccessibilityNodeObject.cpp: (WebCore::AccessibilityNodeObject::canSetValueAttribute const): * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::radioGroupAncestor const): * accessibility/AccessibilityObject.h: LayoutTests: * accessibility/gtk/aria-readonly-radiogroup-expected.txt: Added. * accessibility/gtk/aria-readonly-radiogroup.html: Added.
- Loading branch information
1 parent
2d15e63
commit b8cfcff
Showing
7 changed files
with
83 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
LayoutTests/accessibility/gtk/aria-readonly-radiogroup-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
This verifies ARIA radio buttons base their readonly value on the containing radio group. | ||
|
||
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". | ||
|
||
|
||
test1 AXValue is settable: : true | ||
test2 AXValue is settable: : false | ||
test3 AXValue is settable: : true | ||
PASS successfullyParsed is true | ||
|
||
TEST COMPLETE | ||
|
28 changes: 28 additions & 0 deletions
28
LayoutTests/accessibility/gtk/aria-readonly-radiogroup.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | ||
<html> | ||
<head> | ||
<script src="../../resources/js-test-pre.js"></script> | ||
</head> | ||
<body id="body"> | ||
<div id="content"> | ||
<div role="radiogroup"><div role="radio" id="test1"></div></div> | ||
<div role="radiogroup" aria-readonly="true"><div role="radio" id="test2"></div></div> | ||
<div role="radiogroup" aria-readonly="false"><div role="radio" id="test3"></div></div> | ||
</div> | ||
<p id="description"></p> | ||
<div id="console"></div> | ||
<script> | ||
description("This verifies ARIA radio buttons base their readonly value on the containing radio group."); | ||
if (window.accessibilityController) { | ||
for (var i = 1; i <= 3; i++) { | ||
var axElement = accessibilityController.accessibleElementById("test" + i); | ||
debug("test" + i + " AXValue is settable: : " + axElement.isAttributeSettable("AXValue")); | ||
} | ||
|
||
document.getElementById("content").style.visibility = "hidden"; | ||
} | ||
</script> | ||
<script src="../../resources/js-test-post.js"></script> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters