Skip to content

Commit

Permalink
Add DumpAccessibilityTree tests (16 of 20)
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 22 changed files with 159 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ Raghavendra Ghatage <r.ghatage@samsung.com>
Raman Tenneti <raman.tenneti@gmail.com>
Ramkumar Gokarnesan <ramkumar.gokarnesan@gmail.com>
Ramkumar Ramachandra <artagnon@gmail.com>
Ramya Vadlamudi <ramya.v@samsung.com>
Randy Posynick <randy.posynick@gmail.com>
Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
Ravi Phaneendra Kasibhatla <r.kasibhatla@samsung.com>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaDialog) {
RunTest(FILE_PATH_LITERAL("aria-dialog.html"));
}

IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaDirectory) {
RunTest(FILE_PATH_LITERAL("aria-directory.html"));
}

IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaExpanded) {
RunTest(FILE_PATH_LITERAL("aria-expanded.html"));
}
Expand Down Expand Up @@ -494,6 +498,11 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
RunTest(FILE_PATH_LITERAL("aria-menuitemradio.html"));
}

IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityAriaMultiline) {
RunTest(FILE_PATH_LITERAL("aria-multiline.html"));
}

IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaNavigation) {
RunTest(FILE_PATH_LITERAL("aria-navigation.html"));
}
Expand Down Expand Up @@ -566,6 +575,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaSort) {
RunTest(FILE_PATH_LITERAL("aria-sort.html"));
}

IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaSlider) {
RunTest(FILE_PATH_LITERAL("aria-slider.html"));
}

IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityAriaSpinButton) {
RunTest(FILE_PATH_LITERAL("aria-spinbutton.html"));
Expand All @@ -588,10 +601,18 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaToolbar) {
RunTest(FILE_PATH_LITERAL("aria-toolbar.html"));
}

IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaTooltip) {
RunTest(FILE_PATH_LITERAL("aria-tooltip.html"));
}

IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaTree) {
RunTest(FILE_PATH_LITERAL("aria-tree.html"));
}

IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaTreeGrid) {
RunTest(FILE_PATH_LITERAL("aria-treegrid.html"));
}

IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaValueMin) {
RunTest(FILE_PATH_LITERAL("aria-valuemin.html"));
}
Expand Down
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
AXWebArea AXRoleDescription='HTML content'
AXList AXSubrole=AXContentList AXRoleDescription='list'
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
13 changes: 13 additions & 0 deletions content/test/data/accessibility/aria-directory.html
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>
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

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'
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
13 changes: 13 additions & 0 deletions content/test/data/accessibility/aria-multiline.html
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>
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

2 changes: 2 additions & 0 deletions content/test/data/accessibility/aria-slider-expected-mac.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
AXWebArea AXRoleDescription='HTML content'
AXSlider AXRoleDescription='slider' AXValue='5'
2 changes: 2 additions & 0 deletions content/test/data/accessibility/aria-slider-expected-win.txt
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
14 changes: 14 additions & 0 deletions content/test/data/accessibility/aria-slider.html
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>
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 content/test/data/accessibility/aria-tooltip-expected-mac.txt
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 content/test/data/accessibility/aria-tooltip-expected-win.txt
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
13 changes: 13 additions & 0 deletions content/test/data/accessibility/aria-tooltip.html
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>
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 content/test/data/accessibility/aria-treegrid-expected-mac.txt
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 content/test/data/accessibility/aria-treegrid-expected-win.txt
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
19 changes: 19 additions & 0 deletions content/test/data/accessibility/aria-treegrid.html
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>

0 comments on commit 3c19b96

Please sign in to comment.