Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r222821 - AX: [ATK] aria-rowindex set on row element is not bei…
…ng exposed https://bugs.webkit.org/show_bug.cgi?id=177821 Reviewed by Chris Fleizach. Source/WebCore: Expose the value of aria-rowindex when set on a row as an object attribute, as we already do when it's set on a cell. Test: accessibility/gtk/aria-rowindex-on-row.html * accessibility/atk/WebKitAccessibleWrapperAtk.cpp: (webkitAccessibleGetAttributes): LayoutTests: * accessibility/gtk/aria-rowindex-on-row-expected.txt: Added. * accessibility/gtk/aria-rowindex-on-row.html: Added.
- Loading branch information
1 parent
f6a3019
commit a5bcc98
Showing
5 changed files
with
68 additions
and
3 deletions.
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
10 changes: 10 additions & 0 deletions
10
LayoutTests/accessibility/gtk/aria-rowindex-on-row-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,10 @@ | ||
Verifies the exposure of a mixed value of aria-pressed. | ||
|
||
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". | ||
|
||
|
||
PASS axRow.numberAttributeValue('AXARIARowIndex') is 4 | ||
PASS successfullyParsed is true | ||
|
||
TEST COMPLETE | ||
|
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,26 @@ | ||
<!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="table"> | ||
<div id="test" role="row" aria-rowindex="4"> | ||
<div role="cell">test cell</div> | ||
</div> | ||
</div> | ||
</div> | ||
<p id="description"></p> | ||
<div id="console"></div> | ||
<script> | ||
description("Verifies the exposure of a mixed value of aria-pressed."); | ||
if (window.accessibilityController) { | ||
var axRow = accessibilityController.accessibleElementById("test"); | ||
shouldBe("axRow.numberAttributeValue('AXARIARowIndex')", "4"); | ||
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