forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DumpAccessibilityTree tests (16 of 20)
ARIA Role: directory, slider, tooltip, treegrid ARIA state/property: aria-multiline BUG=170588 Review URL: https://codereview.chromium.org/754363002 Cr-Commit-Position: refs/heads/master@{#306160}
- Loading branch information
ramya.v
authored and
Commit bot
committed
Dec 1, 2014
1 parent
7664a09
commit 3c19b96
Showing
22 changed files
with
159 additions
and
0 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
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
2 changes: 2 additions & 0 deletions
2
content/test/data/accessibility/aria-directory-expected-android.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,2 @@ | ||
android.webkit.WebView focusable focused scrollable | ||
android.widget.ListView collection hierarchical |
2 changes: 2 additions & 0 deletions
2
content/test/data/accessibility/aria-directory-expected-mac.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,2 @@ | ||
AXWebArea AXRoleDescription='HTML content' | ||
AXList AXSubrole=AXContentList AXRoleDescription='list' |
2 changes: 2 additions & 0 deletions
2
content/test/data/accessibility/aria-directory-expected-win.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,2 @@ | ||
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE | ||
ROLE_SYSTEM_LIST READONLY xml-roles:directory |
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,13 @@ | ||
<!-- | ||
@MAC-ALLOW:AXRole* | ||
@MAC-ALLOW:AXSubrole* | ||
@WIN-ALLOW:xml-roles:* | ||
@WIN-DENY:name* | ||
--> | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
<div role="directory"> | ||
</div> | ||
</body> | ||
</html> |
4 changes: 4 additions & 0 deletions
4
content/test/data/accessibility/aria-multiline-expected-android.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,4 @@ | ||
android.webkit.WebView focusable focused scrollable | ||
android.widget.EditText editable_text | ||
android.widget.EditText editable_text multiline | ||
|
3 changes: 3 additions & 0 deletions
3
content/test/data/accessibility/aria-multiline-expected-mac.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,3 @@ | ||
AXWebArea AXRoleDescription='HTML content' | ||
AXTextField AXRoleDescription='text field' | ||
AXTextArea AXRoleDescription='text entry area' |
3 changes: 3 additions & 0 deletions
3
content/test/data/accessibility/aria-multiline-expected-win.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,3 @@ | ||
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE | ||
ROLE_SYSTEM_TEXT IA2_STATE_SINGLE_LINE xml-roles:textbox | ||
ROLE_SYSTEM_TEXT IA2_STATE_MULTI_LINE xml-roles:textbox |
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,13 @@ | ||
<!-- | ||
@MAC-ALLOW:AXRole* | ||
@WIN-ALLOW:IA2_STATE_SINGLE_LINE | ||
@WIN-ALLOW:IA2_STATE_MULTI_LINE | ||
@WIN-ALLOW:xml-roles* | ||
--> | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
<div role="textbox" aria-multiline="false"></div> | ||
<div role="textbox" aria-multiline="true"></div> | ||
</body> | ||
</html> |
3 changes: 3 additions & 0 deletions
3
content/test/data/accessibility/aria-slider-expected-android.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,3 @@ | ||
android.webkit.WebView focusable focused scrollable | ||
android.widget.SeekBar range item_index=44 item_count=100 range_min=1 range_max=10 range_current_value=5 | ||
|
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,2 @@ | ||
AXWebArea AXRoleDescription='HTML content' | ||
AXSlider AXRoleDescription='slider' AXValue='5' |
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,2 @@ | ||
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE | ||
ROLE_SYSTEM_SLIDER xml-roles:slider currentValue=5.00 minimumValue=1.00 maximumValue=10.00 |
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,14 @@ | ||
<!-- | ||
@MAC-ALLOW:AXRole* | ||
@WIN-ALLOW:xml-roles:* | ||
@WIN-ALLOW:currentValue* | ||
@WIN-ALLOW:minimumValue* | ||
@WIN-ALLOW:maximumValue* | ||
@WIN-DENY:name* | ||
--> | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
<div role="slider" aria-valuenow="5" aria-valuemin="1" aria-valuemax="10">Slider</div> | ||
</body> | ||
</html> |
4 changes: 4 additions & 0 deletions
4
content/test/data/accessibility/aria-tooltip-expected-android.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,4 @@ | ||
android.webkit.WebView focusable focused scrollable | ||
android.view.View | ||
android.widget.EditText clickable editable_text focusable name='Your username should be your email id' input_type=1 | ||
android.view.View clickable name='Your username should be your email id' |
5 changes: 5 additions & 0 deletions
5
content/test/data/accessibility/aria-tooltip-expected-mac.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,5 @@ | ||
AXWebArea AXRoleDescription='HTML content' | ||
AXGroup AXRoleDescription='group' | ||
AXTextField AXRoleDescription='text field' | ||
AXGroup AXSubrole=AXUserInterfaceTooltip AXRoleDescription='tooltip' | ||
AXStaticText AXRoleDescription='text' AXValue='Your username should be your email id' |
5 changes: 5 additions & 0 deletions
5
content/test/data/accessibility/aria-tooltip-expected-win.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,5 @@ | ||
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE | ||
IA2_ROLE_SECTION | ||
ROLE_SYSTEM_TEXT FOCUSABLE | ||
ROLE_SYSTEM_TOOLTIP READONLY xml-roles:tooltip | ||
ROLE_SYSTEM_STATICTEXT |
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,13 @@ | ||
<!-- | ||
@MAC-ALLOW:AXRole* | ||
@MAC-ALLOW:AXSubrole* | ||
@WIN-ALLOW:xml-roles:* | ||
@WIN-DENY:name* | ||
--> | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
<input type="text" id="username" aria-describedby="username-tip" /> | ||
<div role="tooltip" id="username-tip">Your username should be your email id</div> | ||
</body> | ||
</html> |
8 changes: 8 additions & 0 deletions
8
content/test/data/accessibility/aria-treegrid-expected-android.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,8 @@ | ||
android.webkit.WebView focusable focused scrollable | ||
android.widget.GridView collection row_count=2 column_count=1 | ||
android.view.View | ||
android.view.View clickable collection_item name='Cell at level 1' row_span=1 column_span=1 | ||
android.view.View | ||
android.view.View clickable collection_item name='Cell at level 2' row_index=1 row_span=1 column_span=1 | ||
android.view.View | ||
android.view.View |
10 changes: 10 additions & 0 deletions
10
content/test/data/accessibility/aria-treegrid-expected-mac.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 @@ | ||
AXWebArea | ||
AXTable | ||
AXRow AXDisclosureLevel='0' | ||
AXCell | ||
AXStaticText AXValue='Cell at level 1' | ||
AXRow AXDisclosureLevel='1' | ||
AXCell | ||
AXStaticText AXValue='Cell at level 2' | ||
AXColumn | ||
AXGroup |
10 changes: 10 additions & 0 deletions
10
content/test/data/accessibility/aria-treegrid-expected-win.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 @@ | ||
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE | ||
ROLE_SYSTEM_OUTLINE xml-roles:treegrid | ||
ROLE_SYSTEM_ROW xml-roles:row level:1 | ||
ROLE_SYSTEM_CELL xml-roles:gridcell | ||
ROLE_SYSTEM_STATICTEXT name='Cell at level 1' | ||
ROLE_SYSTEM_ROW xml-roles:row level:2 | ||
ROLE_SYSTEM_CELL xml-roles:gridcell | ||
ROLE_SYSTEM_STATICTEXT name='Cell at level 2' | ||
ROLE_SYSTEM_COLUMN | ||
IA2_ROLE_SECTION |
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,19 @@ | ||
<!-- | ||
@MAC-ALLOW:AXRole=* | ||
@MAC-ALLOW:AXDisclosureLevel* | ||
@WIN-ALLOW:xml-roles:* | ||
@WIN-ALLOW:level* | ||
--> | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
<table role="treegrid"> | ||
<tr role="row" aria-level="1"> | ||
<td role="gridcell">Cell at level 1</td> | ||
</tr> | ||
<tr role="row" aria-level="2"> | ||
<td role="gridcell">Cell at level 2</td> | ||
</tr> | ||
</table> | ||
</body> | ||
</html> |