Commit 81689334 authored by shreeram.k's avatar shreeram.k Committed by Commit bot

Add DumpAccessibilityTree tests (15,20 of 20)

BUG=170587, 170592
NOTRY=true

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

Cr-Commit-Position: refs/heads/master@{#314343}
parent 00570429
......@@ -267,6 +267,18 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
RunAriaTest(FILE_PATH_LITERAL("aria-grabbed.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaGrid) {
RunAriaTest(FILE_PATH_LITERAL("aria-grid.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaGridCell) {
RunAriaTest(FILE_PATH_LITERAL("aria-gridcell.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaGroup) {
RunAriaTest(FILE_PATH_LITERAL("aria-group.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaImg) {
RunAriaTest(FILE_PATH_LITERAL("aria-img.html"));
}
......@@ -502,6 +514,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaTabList) {
RunAriaTest(FILE_PATH_LITERAL("aria-tablist.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaTabPanel) {
RunAriaTest(FILE_PATH_LITERAL("aria-tabpanel.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaTextbox) {
RunAriaTest(FILE_PATH_LITERAL("aria-textbox.html"));
}
......@@ -563,6 +579,14 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAWithImg) {
RunHtmlTest(FILE_PATH_LITERAL("a-with-img.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityB) {
RunHtmlTest(FILE_PATH_LITERAL("b.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityBase) {
RunHtmlTest(FILE_PATH_LITERAL("base.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityBdo) {
RunHtmlTest(FILE_PATH_LITERAL("bdo.html"));
}
......@@ -783,6 +807,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputFile) {
RunHtmlTest(FILE_PATH_LITERAL("input-file.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputHidden) {
RunHtmlTest(FILE_PATH_LITERAL("input-hidden.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputImage) {
RunHtmlTest(FILE_PATH_LITERAL("input-image.html"));
}
......@@ -804,6 +832,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputMonth) {
}
#endif
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputPassword) {
RunHtmlTest(FILE_PATH_LITERAL("input-password.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputRadio) {
RunHtmlTest(FILE_PATH_LITERAL("input-radio.html"));
}
......@@ -825,6 +857,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputSearch) {
RunHtmlTest(FILE_PATH_LITERAL("input-search.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySmall) {
RunHtmlTest(FILE_PATH_LITERAL("small.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputSubmit) {
RunHtmlTest(FILE_PATH_LITERAL("input-submit.html"));
}
......
android.webkit.WebView focusable focused scrollable
android.widget.GridView collection row_count=2 column_count=2
android.view.View
android.view.View clickable collection_item heading name='Browser' row_span=1 column_span=1
android.view.View clickable collection_item heading 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
android.view.View
AXWebArea AXRoleDescription='HTML content'
AXTable AXRoleDescription='table'
AXRow AXRoleDescription='row'
AXCell AXRoleDescription='cell'
AXStaticText AXRoleDescription='text' AXValue='Browser'
AXCell AXRoleDescription='cell'
AXStaticText AXRoleDescription='text' AXValue='Rendering Engine'
AXRow AXRoleDescription='row'
AXCell AXRoleDescription='cell'
AXStaticText AXRoleDescription='text' AXValue='Chrome'
AXCell AXRoleDescription='cell'
AXStaticText AXRoleDescription='text' AXValue='Blink'
AXColumn AXRoleDescription='column'
AXColumn AXRoleDescription='column'
AXGroup AXRoleDescription='group'
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
ROLE_SYSTEM_TABLE MULTISELECTABLE EXTSELECTABLE xml-roles:grid
ROLE_SYSTEM_ROW xml-roles:row
ROLE_SYSTEM_COLUMNHEADER xml-roles:columnheader
ROLE_SYSTEM_STATICTEXT name='Browser'
ROLE_SYSTEM_COLUMNHEADER xml-roles:columnheader
ROLE_SYSTEM_STATICTEXT name='Rendering Engine'
ROLE_SYSTEM_ROW xml-roles:row
ROLE_SYSTEM_CELL xml-roles:gridcell
ROLE_SYSTEM_STATICTEXT name='Chrome'
ROLE_SYSTEM_CELL xml-roles:gridcell
ROLE_SYSTEM_STATICTEXT name='Blink'
ROLE_SYSTEM_COLUMN
ROLE_SYSTEM_COLUMN
IA2_ROLE_SECTION
<!--
@MAC-ALLOW:AXRole*
@WIN-ALLOW:*SELECTABLE
@WIN-ALLOW:xml-roles*
-->
<!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>
</body>
</html>
android.webkit.WebView focusable focused scrollable
android.widget.GridView collection row_count=2 column_count=2
android.view.View
android.view.View clickable collection_item heading name='Browser' row_span=1 column_span=1
android.view.View clickable collection_item heading 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
android.view.View
AXWebArea AXRoleDescription='HTML content'
AXTable AXRoleDescription='table'
AXRow AXRoleDescription='row'
AXCell AXRoleDescription='cell'
AXStaticText AXRoleDescription='text' AXValue='Browser'
AXCell AXRoleDescription='cell'
AXStaticText AXRoleDescription='text' AXValue='Rendering Engine'
AXRow AXRoleDescription='row'
AXCell AXRoleDescription='cell'
AXStaticText AXRoleDescription='text' AXValue='Chrome'
AXCell AXRoleDescription='cell'
AXStaticText AXRoleDescription='text' AXValue='Blink'
AXColumn AXRoleDescription='column'
AXColumn AXRoleDescription='column'
AXGroup AXRoleDescription='group'
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
ROLE_SYSTEM_TABLE MULTISELECTABLE EXTSELECTABLE xml-roles:grid
ROLE_SYSTEM_ROW xml-roles:row
ROLE_SYSTEM_COLUMNHEADER xml-roles:columnheader
ROLE_SYSTEM_STATICTEXT name='Browser'
ROLE_SYSTEM_COLUMNHEADER xml-roles:columnheader
ROLE_SYSTEM_STATICTEXT name='Rendering Engine'
ROLE_SYSTEM_ROW xml-roles:row
ROLE_SYSTEM_CELL xml-roles:gridcell
ROLE_SYSTEM_STATICTEXT name='Chrome'
ROLE_SYSTEM_CELL xml-roles:gridcell
ROLE_SYSTEM_STATICTEXT name='Blink'
ROLE_SYSTEM_COLUMN
ROLE_SYSTEM_COLUMN
IA2_ROLE_SECTION
<!--
@MAC-ALLOW:AXRole*
@WIN-ALLOW:*SELECTABLE
@WIN-ALLOW:xml-roles*
-->
<!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>
</body>
</html>
android.webkit.WebView focusable focused scrollable
android.view.View
android.view.View clickable link name='Group Link1'
android.view.View clickable link name='Group Link2'
AXWebArea AXRoleDescription='HTML content'
AXGroup AXRoleDescription='group'
AXLink AXRoleDescription='link' AXTitle='Group Link1'
AXStaticText AXRoleDescription='text' AXValue='Group Link1'
AXLink AXRoleDescription='link' AXTitle='Group Link2'
AXStaticText AXRoleDescription='text' AXValue='Group Link2'
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
ROLE_SYSTEM_GROUPING xml-roles:group
ROLE_SYSTEM_LINK name='Group Link1' xml-roles:link
ROLE_SYSTEM_STATICTEXT name='Group Link1'
ROLE_SYSTEM_LINK name='Group Link2' xml-roles:link
ROLE_SYSTEM_STATICTEXT name='Group Link2'
<!--
@MAC-ALLOW:AXRole*
@WIN-ALLOW:xml-roles*
-->
<!DOCTYPE html>
<html>
<body>
<div role="group">
<div role="link">Group Link1</div>
<div role="link">Group Link2</div>
</div>
</body>
</html>
android.webkit.WebView focusable focused scrollable
android.widget.ListView collection item_count=2 row_count=2
android.view.View clickable collection_item focusable selected name='4'
android.view.View clickable collection_item focusable selected name='5' item_index=1 row_index=1
android.view.View clickable collection_item focusable selected name='1'
android.view.View clickable collection_item focusable name='2' item_index=1 row_index=1
#<skip -- Expose AXSelected on selected child>
AXWebArea
AXList AXSelectedChildren=["AXStaticText 4","AXStaticText 5"]
AXStaticText AXTitle='Item 4'
AXStaticText AXTitle='Item 5'
AXList AXSelectedChildren=["AXStaticText 1"]
AXStaticText AXTitle='Item 1'
AXStaticText AXTitle='Item 2'
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
ROLE_SYSTEM_LIST
ROLE_SYSTEM_LISTITEM name='4' SELECTED FOCUSABLE
ROLE_SYSTEM_LISTITEM name='5' SELECTED FOCUSABLE
ROLE_SYSTEM_LISTITEM name='1' SELECTED FOCUSABLE
ROLE_SYSTEM_LISTITEM name='2' FOCUSABLE
......@@ -6,8 +6,8 @@
<html>
<body>
<div role="listbox">
<div tabIndex="-1" aria-selected="true" aria-label="4" role="option">Item 4</div>
<div tabIndex="-1" aria-selected="true" aria-label="5" role="option">Item 5</div>
<div tabIndex="-1" aria-selected="true" aria-label="1" role="option">Item 1</div>
<div tabIndex="-1" aria-selected="false" aria-label="2" role="option">Item 2</div>
</div>
</body>
</html>
android.webkit.WebView focusable focused scrollable
android.view.View
android.view.View clickable name='Item'
android.view.View clickable name='Prices'
AXWebArea AXRoleDescription='HTML content'
AXGroup AXSubrole=AXTabPanel AXRoleDescription='tabpanel'
AXRadioButton AXRoleDescription='tab' AXTitle='Item' AXValue='0'
AXRadioButton AXRoleDescription='tab' AXTitle='Prices' AXValue='0'
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
ROLE_SYSTEM_PROPERTYPAGE xml-roles:tabpanel
ROLE_SYSTEM_PAGETAB name='Item' xml-roles:tab
ROLE_SYSTEM_PAGETAB name='Prices' xml-roles:tab
<!--
@MAC-ALLOW:AXRole*
@MAC-ALLOW:AXSubrole*
@WIN-ALLOW:xml-roles*
-->
<!DOCTYPE html>
<html>
<body>
<div role="tabpanel">
<div role="tab">
<h3>Item</h3>
</div>
<div role="tab">
<h3>Prices</h3>
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<b>This is bold text</b>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<base href="http://www.chromium.org/" target="_blank">
</head>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<input type="hidden">
</body>
</html>
android.webkit.WebView focusable focused scrollable
android.view.View
android.widget.EditText clickable editable_text focusable password input_type=225
AXWebArea AXRoleDescription='HTML content'
AXGroup AXRoleDescription='group'
AXTextField AXSubrole=AXSecureTextField AXRoleDescription='text field'
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
IA2_ROLE_SECTION
ROLE_SYSTEM_TEXT FOCUSABLE PROTECTED IA2_STATE_EDITABLE IA2_STATE_SELECTABLE_TEXT IA2_STATE_SINGLE_LINE text-input-type:password
<!--
@MAC-ALLOW:AXRole*
@MAC-ALLOW:AXSubrole*
@WIN-ALLOW:PROTECTED
@WIN-ALLOW:IA2_STATE*
@WIN-ALLOW:text-input-type*
-->
<!DOCTYPE html>
<html>
<body>
<input type="password">
</body>
</html>
AXWebArea
AXGroup
AXStaticText AXValue='Chromium'
AXStaticText AXValue='open source project'
<!DOCTYPE html>
<html>
<body>
<p>Chromium<small>open source project</small></p>
</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