Commit 70249e53 authored by shreeram.k's avatar shreeram.k Committed by Commit bot

Add DumpAccessibilityTree tests (3 of 20)

html tags: cite, tbody, tfoot, th(as rowheader), param, input type text
ARIA state/property: aria-haspopup(true,false), aria-relevant(additions, removals, text, all, additions-text), aria-pressed
ARIA Role: columnheader

BUG=170575

Review URL: https://codereview.chromium.org/651223004

Cr-Commit-Position: refs/heads/master@{#299866}
parent 4757aae1
...@@ -336,6 +336,11 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaCheckBox) { ...@@ -336,6 +336,11 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaCheckBox) {
RunTest(FILE_PATH_LITERAL("aria-checkbox.html")); RunTest(FILE_PATH_LITERAL("aria-checkbox.html"));
} }
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityAriaColumnHeader) {
RunTest(FILE_PATH_LITERAL("aria-columnheader.html"));
}
// crbug.com/98976 will cause new elements to be added to the Blink a11y tree // crbug.com/98976 will cause new elements to be added to the Blink a11y tree
// Re-baseline after the Blink change goes in // Re-baseline after the Blink change goes in
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
...@@ -353,6 +358,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, ...@@ -353,6 +358,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
RunTest(FILE_PATH_LITERAL("aria-contentinfo.html")); RunTest(FILE_PATH_LITERAL("aria-contentinfo.html"));
} }
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaHasPopup) {
RunTest(FILE_PATH_LITERAL("aria-haspopup.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaHidden) { IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaHidden) {
RunTest(FILE_PATH_LITERAL("aria-hidden.html")); RunTest(FILE_PATH_LITERAL("aria-hidden.html"));
} }
...@@ -411,12 +420,12 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaMenu) { ...@@ -411,12 +420,12 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaMenu) {
} }
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityAriaMenuitemcheckbox) { AccessibilityAriaMenuItemCheckBox) {
RunTest(FILE_PATH_LITERAL("aria-menuitemcheckbox.html")); RunTest(FILE_PATH_LITERAL("aria-menuitemcheckbox.html"));
} }
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityAriaMenuitemradio) { AccessibilityAriaMenuItemRadio) {
RunTest(FILE_PATH_LITERAL("aria-menuitemradio.html")); RunTest(FILE_PATH_LITERAL("aria-menuitemradio.html"));
} }
...@@ -443,6 +452,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, ...@@ -443,6 +452,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
RunTest(FILE_PATH_LITERAL("aria-progressbar.html")); RunTest(FILE_PATH_LITERAL("aria-progressbar.html"));
} }
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaRelevant) {
RunTest(FILE_PATH_LITERAL("aria-relevant.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaRow) { IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaRow) {
RunTest(FILE_PATH_LITERAL("aria-row.html")); RunTest(FILE_PATH_LITERAL("aria-row.html"));
} }
...@@ -530,6 +543,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, ...@@ -530,6 +543,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
RunTest(FILE_PATH_LITERAL("checkbox-name-calc.html")); RunTest(FILE_PATH_LITERAL("checkbox-name-calc.html"));
} }
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityCite) {
RunTest(FILE_PATH_LITERAL("cite.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityCol) { IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityCol) {
RunTest(FILE_PATH_LITERAL("col.html")); RunTest(FILE_PATH_LITERAL("col.html"));
} }
...@@ -672,6 +689,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputSearch) { ...@@ -672,6 +689,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputSearch) {
RunTest(FILE_PATH_LITERAL("input-search.html")); RunTest(FILE_PATH_LITERAL("input-search.html"));
} }
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputText) {
RunTest(FILE_PATH_LITERAL("input-text.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityInputTextNameCalc) { AccessibilityInputTextNameCalc) {
RunTest(FILE_PATH_LITERAL("input-text-name-calc.html")); RunTest(FILE_PATH_LITERAL("input-text-name-calc.html"));
...@@ -779,6 +800,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityP) { ...@@ -779,6 +800,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityP) {
RunTest(FILE_PATH_LITERAL("p.html")); RunTest(FILE_PATH_LITERAL("p.html"));
} }
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityParam) {
RunTest(FILE_PATH_LITERAL("param.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityQ) { IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityQ) {
RunTest(FILE_PATH_LITERAL("q.html")); RunTest(FILE_PATH_LITERAL("q.html"));
} }
...@@ -815,6 +840,16 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityTableSimple) { ...@@ -815,6 +840,16 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityTableSimple) {
RunTest(FILE_PATH_LITERAL("table-simple.html")); RunTest(FILE_PATH_LITERAL("table-simple.html"));
} }
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityTableThRowHeader) {
RunTest(FILE_PATH_LITERAL("table-th-rowheader.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityTableTbodyTfoot) {
RunTest(FILE_PATH_LITERAL("table-tbody-tfoot.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityTableSpans) { IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityTableSpans) {
RunTest(FILE_PATH_LITERAL("table-spans.html")); RunTest(FILE_PATH_LITERAL("table-spans.html"));
} }
......
android.webkit.WebView focusable focused scrollable
android.widget.GridView collection row_count=3 column_count=2
android.view.View
android.view.View clickable collection_item name='Browser' row_span=1 column_span=1
android.view.View clickable collection_item name='Rendering Engine' row_span=1 column_index=1 column_span=1
android.view.View
android.view.View clickable collection_item name='Chrome' row_index=1 row_span=1 column_span=1
android.view.View clickable collection_item name='Blink' row_index=1 row_span=1 column_index=1 column_span=1
android.view.View
android.view.View clickable collection_item name='Safari' row_index=2 row_span=1 column_span=1
android.view.View clickable collection_item name='WebKit' row_index=2 row_span=1 column_index=1 column_span=1
android.view.View
android.view.View
android.view.View
AXWebArea
AXTable
AXRow
AXCell
AXStaticText AXValue='Browser'
AXCell
AXStaticText AXValue='Rendering Engine'
AXRow
AXCell
AXStaticText AXValue='Chrome'
AXCell
AXStaticText AXValue='Blink'
AXRow
AXCell
AXStaticText AXValue='Safari'
AXCell
AXStaticText AXValue='WebKit'
AXColumn
AXColumn
AXGroup
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
ROLE_SYSTEM_TABLE READONLY
ROLE_SYSTEM_ROW READONLY
ROLE_SYSTEM_CELL
ROLE_SYSTEM_STATICTEXT name='Browser'
ROLE_SYSTEM_CELL
ROLE_SYSTEM_STATICTEXT name='Rendering Engine'
ROLE_SYSTEM_ROW READONLY
ROLE_SYSTEM_CELL
ROLE_SYSTEM_STATICTEXT name='Chrome'
ROLE_SYSTEM_CELL
ROLE_SYSTEM_STATICTEXT name='Blink'
ROLE_SYSTEM_ROW READONLY
ROLE_SYSTEM_CELL
ROLE_SYSTEM_STATICTEXT name='Safari'
ROLE_SYSTEM_CELL
ROLE_SYSTEM_STATICTEXT name='WebKit'
ROLE_SYSTEM_COLUMN
ROLE_SYSTEM_COLUMN
IA2_ROLE_SECTION
<!DOCTYPE html>
<html>
<body>
<div role="grid">
<div role="row">
<span role="columnheader">Browser</span>
<span role="columnheader">Rendering Engine</span>
</div>
<div role="row">
<span role="gridcell">Chrome</span>
<span role="gridcell">Blink</span>
</div>
<div role="row">
<span role="gridcell">Safari</span>
<span role="gridcell">WebKit</span>
</div>
</div>
</body>
</html>
android.webkit.WebView focusable focused scrollable
android.widget.Spinner focusable
android.widget.Spinner focusable
#<skip -- aria-haspopup not exposed crbug.com/423651>
AXWebArea
AXComboBox
AXComboBox
#<skip -- crbug.com/424061>
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
ROLE_SYSTEM_COMBOBOX EXPANDED FOCUSABLE HASPOPUP
ROLE_SYSTEM_COMBOBOX FOCUSABLE
<!--
@MAC-ALLOW:AXShowMenu*
@MAC-ALLOW:AXPress*
@WIN-ALLOW:EXPANDED*
@WIN-ALLOW:HASPOPUP*
-->
<!DOCTYPE html>
<html>
<body>
<div tabindex=0 role="combobox" aria-haspopup="true">
</div>
<div tabindex=1 role="combobox" aria-haspopup="false">
</div>
</body>
</html>
<!doctype html> <!DOCTYPE html>
<!-- <!--
@WIN-DENY:name* @WIN-DENY:name*
@WIN-ALLOW:PRESSED @WIN-ALLOW:PRESSED
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
<html> <html>
<body> <body>
<div tabindex=0 role="button">Regular button</div> <div tabindex=0 role="button">Regular button</div>
<div tabindex=0 role="button" aria-pressed="false">Toggle button unpressed</div> <div tabindex=1 role="button" aria-pressed="false">Toggle button unpressed</div>
<div tabindex=0 role="button" aria-pressed="true">Toggle button pressed</div> <div tabindex=2 role="button" aria-pressed="true">Toggle button pressed</div>
<div tabindex=0 role="button" aria-pressed="mixed">Toggle button mixed</div> <div tabindex=3 role="button" aria-pressed="mixed">Toggle button mixed</div>
</body> </body>
</html> </html>
android.webkit.WebView focusable focused scrollable
android.view.View focusable
android.view.View focusable
android.view.View focusable
android.view.View focusable
android.view.View focusable
#<skip -- AXAriaRelevant is not exposedcrbug.com/423630>
AXWebArea
AXGroup AXSubrole=AXApplicationLog AXARIARelevant:additions
AXGroup AXSubrole=AXApplicationLog AXARIARelevant:removals
AXGroup AXSubrole=AXApplicationLog AXARIARelevant:text
AXGroup AXSubrole=AXApplicationLog AXARIARelevant:all
AXGroup AXSubrole=AXApplicationLog AXARIARelevant:additions-text
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
ROLE_SYSTEM_CLIENT FOCUSABLE relevant:additions container-relevant:additions
ROLE_SYSTEM_CLIENT FOCUSABLE relevant:removals container-relevant:removals
ROLE_SYSTEM_CLIENT FOCUSABLE relevant:text container-relevant:text
ROLE_SYSTEM_CLIENT FOCUSABLE relevant:all container-relevant:all
ROLE_SYSTEM_CLIENT FOCUSABLE relevant:additions-text container-relevant:additions-text
<!--
@MAC-ALLOW:AXSubrole=*
@MAC-ALLOW:AXARIARelevant*
@WIN-ALLOW:relevant:*
@WIN-ALLOW:container-relevant:*
-->
<html>
<body>
<div tabindex=0 role="log" aria-relevant="additions"></div>
<div tabindex=1 role="log" aria-relevant="removals"></div>
<div tabindex=2 role="log" aria-relevant="text"></div>
<div tabindex=3 role="log" aria-relevant="all"></div>
<div tabindex=3 role="log" aria-relevant="additions-text"></div>
</body>
</html>
android.webkit.WebView focusable focused scrollable
android.view.View
android.widget.Image clickable name='Pipe'
android.view.View clickable name='The pipeclicked by SomeOne.'
AXWebArea
AXGroup
AXImage
AXGroup
AXStaticText AXValue='The pipe'
AXStaticText AXValue=' clicked by SomeOne.'
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
IA2_ROLE_SECTION READONLY
ROLE_SYSTEM_GRAPHIC name='Pipe' READONLY
IA2_ROLE_PARAGRAPH
ROLE_SYSTEM_STATICTEXT name='The pipe'
ROLE_SYSTEM_STATICTEXT name=' clicked by SomeOne.'
<!DOCTYPE html>
<html>
<body>
<img src="pipe.jpg" width="220" height="277" alt="Pipe">
<p><cite>The pipe</cite> clicked by SomeOne.</p>
</body>
</html>
android.webkit.WebView focusable focused scrollable
android.view.View
android.widget.EditText editable_text focusable input_type=1
AXWebArea AXRoleDescription='HTML content'
AXGroup AXRoleDescription='group'
AXTextField AXRoleDescription='text field'
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
IA2_ROLE_SECTION READONLY
ROLE_SYSTEM_TEXT FOCUSABLE IA2_STATE_EDITABLE IA2_STATE_SELECTABLE_TEXT IA2_STATE_SINGLE_LINE text-input-type:text
<!DOCTYPE html>
<!--
@MAC-ALLOW:AXRole*
@WIN-ALLOW:text-input-type*
@WIN-ALLOW:IA2_STATE*
-->
<html>
<body>
<input type="text">
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<object width="400" height="400" data="../../../../media/test/data/bear.swf">
<param name="autoplay" value="true">
</object>
</body>
</html>
<!doctype html> <!DOCTYPE html>
<!-- <!--
@MAC-ALLOW:AXIndex=* @MAC-ALLOW:AXIndex=*
@MAC-ALLOW:AXColumnIndexRange=* @MAC-ALLOW:AXColumnIndexRange=*
......
android.webkit.WebView focusable focused scrollable name='Table example'
android.widget.GridView collection row_count=4 column_count=2
android.view.View
android.view.View clickable collection_item name='Sum' row_span=1 column_span=1
android.view.View clickable collection_item name='Subtraction' row_span=1 column_index=1 column_span=1
android.view.View
android.view.View clickable collection_item name='10' row_index=1 row_span=1 column_span=1
android.view.View clickable collection_item name='7' row_index=1 row_span=1 column_index=1 column_span=1
android.view.View
android.view.View clickable collection_item name='2' row_index=2 row_span=1 column_span=1
android.view.View clickable collection_item name='4' row_index=2 row_span=1 column_index=1 column_span=1
android.view.View
android.view.View clickable collection_item name='12' row_index=3 row_span=1 column_span=1
android.view.View clickable collection_item name='3' row_index=3 row_span=1 column_index=1 column_span=1
android.view.View
android.view.View
android.view.View
AXWebArea AXTitle='Table example'
AXTable
AXRow AXIndex='0'
AXCell AXColumnIndexRange={"len":1,"loc":0} AXRowIndexRange={"len":1,"loc":0}
AXStaticText AXValue='Sum'
AXCell AXColumnIndexRange={"len":1,"loc":1} AXRowIndexRange={"len":1,"loc":0}
AXStaticText AXValue='Subtraction'
AXRow AXIndex='1'
AXCell AXColumnIndexRange={"len":1,"loc":0} AXRowIndexRange={"len":1,"loc":1}
AXStaticText AXValue='10'
AXCell AXColumnIndexRange={"len":1,"loc":1} AXRowIndexRange={"len":1,"loc":1}
AXStaticText AXValue='7'
AXRow AXIndex='2'
AXCell AXColumnIndexRange={"len":1,"loc":0} AXRowIndexRange={"len":1,"loc":2}
AXStaticText AXValue='2'
AXCell AXColumnIndexRange={"len":1,"loc":1} AXRowIndexRange={"len":1,"loc":2}
AXStaticText AXValue='4'
AXRow AXIndex='3'
AXCell AXColumnIndexRange={"len":1,"loc":0} AXRowIndexRange={"len":1,"loc":3}
AXStaticText AXValue='12'
AXCell AXColumnIndexRange={"len":1,"loc":1} AXRowIndexRange={"len":1,"loc":3}
AXStaticText AXValue='3'
AXColumn AXIndex='0'
AXColumn AXIndex='1'
AXGroup
#<skip - we don't dump table attrs on win yet>
<!DOCTYPE html>
<!--
@MAC-ALLOW:AXIndex=*
@MAC-ALLOW:AXColumnIndexRange=*
@MAC-ALLOW:AXRowIndexRange=*
-->
<html>
<head>
<title>Table example</title>
</head>
<body>
<table border=1>
<thead>
<tr>
<th>Sum</th>
<th>Subtraction</th>
</tr>
</thead>
<tfoot>
<tr>
<td>12</td>
<td>3</td>
</tr>
</tfoot>
<tr>
<td>10</td>
<td>7</td>
</tr>
<tr>
<td>2</td>
<td>4</td>
</tr>
</table>
</body>
</html>
android.webkit.WebView focusable focused scrollable name='Table example'
android.widget.GridView collection row_count=2 column_count=2
android.view.View
android.view.View clickable collection_item name='Firstname' row_span=1 column_span=1
android.view.View clickable collection_item name='Jill' row_span=1 column_index=1 column_span=1
android.view.View
android.view.View clickable collection_item name='Lastname' row_index=1 row_span=1 column_span=1
android.view.View clickable collection_item name='Smith' row_index=1 row_span=1 column_index=1 column_span=1
android.view.View
android.view.View
android.view.View
AXWebArea AXTitle='Table example'
AXTable
AXRow AXIndex='0'
AXCell AXColumnIndexRange={"len":1,"loc":0} AXRowIndexRange={"len":1,"loc":0}
AXStaticText AXValue='Firstname'
AXCell AXColumnIndexRange={"len":1,"loc":1} AXRowIndexRange={"len":1,"loc":0}
AXStaticText AXValue='Jill'
AXRow AXIndex='1'
AXCell AXColumnIndexRange={"len":1,"loc":0} AXRowIndexRange={"len":1,"loc":1}
AXStaticText AXValue='Lastname'
AXCell AXColumnIndexRange={"len":1,"loc":1} AXRowIndexRange={"len":1,"loc":1}
AXStaticText AXValue='Smith'
AXColumn AXIndex='0'
AXColumn AXIndex='1'
AXGroup
#<skip - we don't dump table attrs on win yet>
<!doctype html>
<!--
@MAC-ALLOW:AXIndex=*
@MAC-ALLOW:AXColumnIndexRange=*
@MAC-ALLOW:AXRowIndexRange=*
-->
<html>
<head>
<title>Table example</title>
</head>
<body>
<table border=1>
<tr>
<th>Firstname</th>
<td>Jill</td>
</tr>
<tr>
<th>Lastname</th>
<td>Smith</td>
</tr>
</table>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment