Commit 235fd06a authored by shreeram.k's avatar shreeram.k Committed by Commit bot

Adding DumpAccessibilityTree Tests (7 of 20)

HTML Tags: abbr, button, col, figure, meta, meter, input type(search, time)
Aria role: log, marquee
Aria state/property: aria-orientation(horizontal, vertical), aria-sort(Ascending, Descending, Other)

BUG=170579

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

Cr-Commit-Position: refs/heads/master@{#296157}
parent a0e52c6f
......@@ -289,6 +289,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityA) {
RunTest(FILE_PATH_LITERAL("a.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAbbr) {
RunTest(FILE_PATH_LITERAL("abbr.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAddress) {
RunTest(FILE_PATH_LITERAL("address.html"));
}
......@@ -380,6 +384,14 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
RunTest(FILE_PATH_LITERAL("aria-listbox-childfocus.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaLog) {
RunTest(FILE_PATH_LITERAL("aria-log.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaMarquee) {
RunTest(FILE_PATH_LITERAL("aria-marquee.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaMenu) {
RunTest(FILE_PATH_LITERAL("aria-menu.html"));
}
......@@ -389,6 +401,11 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
RunTest(FILE_PATH_LITERAL("aria-menuitemradio.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityAriaOrientation) {
RunTest(FILE_PATH_LITERAL("aria-orientation.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityAriaPressed) {
RunTest(FILE_PATH_LITERAL("aria-pressed.html"));
......@@ -408,6 +425,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
RunTest(FILE_PATH_LITERAL("aria-readonly.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaSort) {
RunTest(FILE_PATH_LITERAL("aria-sort.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityAriaSpinButton) {
RunTest(FILE_PATH_LITERAL("aria-spinbutton.html"));
......@@ -457,6 +478,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityBR) {
RunTest(FILE_PATH_LITERAL("br.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityButton) {
RunTest(FILE_PATH_LITERAL("button.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityButtonNameCalc) {
RunTest(FILE_PATH_LITERAL("button-name-calc.html"));
}
......@@ -474,6 +499,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
RunTest(FILE_PATH_LITERAL("checkbox-name-calc.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityCol) {
RunTest(FILE_PATH_LITERAL("col.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityDel) {
RunTest(FILE_PATH_LITERAL("del.html"));
}
......@@ -507,6 +536,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityFigcaption) {
RunTest(FILE_PATH_LITERAL("figcaption.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityFigure) {
RunTest(FILE_PATH_LITERAL("figure.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityFooter) {
RunTest(FILE_PATH_LITERAL("footer.html"));
}
......@@ -558,11 +591,19 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputRange) {
RunTest(FILE_PATH_LITERAL("input-range.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputSearch) {
RunTest(FILE_PATH_LITERAL("input-search.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityInputTextNameCalc) {
RunTest(FILE_PATH_LITERAL("input-text-name-calc.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputTime) {
RunTest(FILE_PATH_LITERAL("input-time.html"));
}
// crbug.com/98976 will cause new elements to be added to the Blink a11y tree
// Re-baseline after the Blink change goes in
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
......@@ -599,6 +640,14 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
RunTest(FILE_PATH_LITERAL("menu-type-context.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityMeta) {
RunTest(FILE_PATH_LITERAL("meta.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityMeter) {
RunTest(FILE_PATH_LITERAL("meter.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityModalDialogClosed) {
RunTest(FILE_PATH_LITERAL("modal-dialog-closed.html"));
......
android.webkit.WebView focusable focused scrollable
android.view.View
android.view.View clickable name='The'
android.view.View clickable name='World Health Organization'
android.view.View clickable name='was founded in 1948.'
AXWebArea AXRoleDescription='HTML content'
AXGroup AXRoleDescription='group'
AXStaticText AXRoleDescription='text' AXValue='The '
AXUnknown AXRoleDescription='unknown'
AXStaticText AXRoleDescription='text' AXValue='WHO'
AXStaticText AXRoleDescription='text' AXValue=' was founded in 1948.'
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
IA2_ROLE_PARAGRAPH
ROLE_SYSTEM_STATICTEXT name='The '
ROLE_SYSTEM_CLIENT name='World Health Organization'
ROLE_SYSTEM_STATICTEXT name='WHO'
ROLE_SYSTEM_STATICTEXT name=' was founded in 1948.'
<!DOCTYPE html>
<!--
@MAC-ALLOW:AXRoleDescription=*
-->
<html>
<body>
<p>The <abbr title="World Health Organization">WHO</abbr> was founded in 1948.</p>
</body>
</html>
AXWebArea
AXGroup AXSubrole=AXApplicationLog
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
ROLE_SYSTEM_CLIENT xml-roles:log
<!--
@MAC-ALLOW:AXSubrole=*
@WIN-ALLOW:xml-roles:*
-->
<html>
<body>
<div role="log">
</body>
</html>
AXWebArea AXRoleDescription='HTML content'
AXGroup AXSubrole=AXApplicationMarquee AXRoleDescription='marquee'
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
ROLE_SYSTEM_CLIENT xml-roles:marquee
<!DOCTYPE html>
<!--
@MAC-ALLOW:AXSubrole=*
@MAC-ALLOW:AXRoleDescription=*
@WIN-ALLOW:xml-roles:*
-->
<html>
<body>
<div role="marquee" aria-live="polite"></div>
</body>
</html>
android.webkit.WebView focusable focused scrollable
android.view.View range range_max=17 range_current_value=14
android.view.View range range_max=17 range_current_value=14
AXWebArea
AXScrollBar AXValue='14' AXOrientation='AXHorizontalOrientation'
AXScrollBar AXValue='14' AXOrientation='AXVerticalOrientation'
#<skip -- need to generate correct expectations>
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
ROLE_SYSTEM_SCROLLBAR
ROLE_SYSTEM_SCROLLBAR
<!--
@MAC-ALLOW:AXOrientation=*
-->
<html>
<body>
<div id="horizontal" role="scrollbar" aria-orientation="horizontal"
aria-valuemin="0" aria-valuemax="17" aria-valuenow="14" > </div>
<div id="vertical" role="scrollbar" aria-orientation="vertical"
aria-valuemin="0" aria-valuemax="17" aria-valuenow="14" ></div>
</body>
</html>
android.webkit.WebView focusable focused scrollable
android.widget.GridView collection row_count=3 column_count=1
android.view.View
android.view.View clickable collection_item name='Alphabet' row_span=1 column_span=1
android.view.View
android.view.View clickable collection_item name='A' row_index=1 row_span=1 column_span=1
android.view.View
android.view.View clickable collection_item name='B' row_index=2 row_span=1 column_span=1
android.view.View
android.view.View
android.widget.GridView collection row_count=3 column_count=1
android.view.View
android.view.View clickable collection_item name='Alphabet' row_span=1 column_span=1
android.view.View
android.view.View clickable collection_item name='A' row_index=1 row_span=1 column_span=1
android.view.View
android.view.View clickable collection_item name='B' row_index=2 row_span=1 column_span=1
android.view.View
android.view.View
android.widget.GridView collection row_count=3 column_count=1
android.view.View
android.view.View clickable collection_item name='Alphabet' row_span=1 column_span=1
android.view.View
android.view.View clickable collection_item name='A' row_index=1 row_span=1 column_span=1
android.view.View
android.view.View clickable collection_item name='B' row_index=2 row_span=1 column_span=1
android.view.View
android.view.View
AXWebArea
AXTable
AXRow
AXCell
AXStaticText AXValue='Alphabet'
AXRow
AXCell
AXStaticText AXValue='A'
AXRow
AXCell
AXStaticText AXValue='B'
AXColumn
AXGroup
AXTable
AXRow
AXCell
AXStaticText AXValue='Alphabet'
AXRow
AXCell
AXStaticText AXValue='A'
AXRow
AXCell
AXStaticText AXValue='B'
AXColumn
AXGroup
AXTable
AXRow
AXCell
AXStaticText AXValue='Alphabet'
AXRow
AXCell
AXStaticText AXValue='A'
AXRow
AXCell
AXStaticText AXValue='B'
AXColumn
AXGroup
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
ROLE_SYSTEM_TABLE READONLY
ROLE_SYSTEM_ROW READONLY
ROLE_SYSTEM_CELL
ROLE_SYSTEM_STATICTEXT name='Alphabet'
ROLE_SYSTEM_ROW READONLY
ROLE_SYSTEM_CELL
ROLE_SYSTEM_STATICTEXT name='A'
ROLE_SYSTEM_ROW READONLY
ROLE_SYSTEM_CELL
ROLE_SYSTEM_STATICTEXT name='B'
ROLE_SYSTEM_COLUMN
IA2_ROLE_SECTION
ROLE_SYSTEM_TABLE READONLY
ROLE_SYSTEM_ROW READONLY
ROLE_SYSTEM_CELL
ROLE_SYSTEM_STATICTEXT name='Alphabet'
ROLE_SYSTEM_ROW READONLY
ROLE_SYSTEM_CELL
ROLE_SYSTEM_STATICTEXT name='A'
ROLE_SYSTEM_ROW READONLY
ROLE_SYSTEM_CELL
ROLE_SYSTEM_STATICTEXT name='B'
ROLE_SYSTEM_COLUMN
IA2_ROLE_SECTION
ROLE_SYSTEM_TABLE READONLY
ROLE_SYSTEM_ROW READONLY
ROLE_SYSTEM_CELL
ROLE_SYSTEM_STATICTEXT name='Alphabet'
ROLE_SYSTEM_ROW READONLY
ROLE_SYSTEM_CELL
ROLE_SYSTEM_STATICTEXT name='A'
ROLE_SYSTEM_ROW READONLY
ROLE_SYSTEM_CELL
ROLE_SYSTEM_STATICTEXT name='B'
ROLE_SYSTEM_COLUMN
IA2_ROLE_SECTION
<!--
@MAC-ALLOW:AXSortDirection*
-->
<html>
<body>
<div role="grid">
<div role="row">
<span role="columnheader" aria-sort="ascending">Alphabet</span>
</div>
<div role="row">
<span role="gridcell">A</span>
</div>
<div role="row">
<span role="gridcell">B</span>
</div>
</div>
<div role="grid">
<div role="row">
<span role="columnheader" aria-sort="descending">Alphabet</span>
</div>
<div role="row">
<span role="gridcell">A</span>
</div>
<div role="row">
<span role="gridcell">B</span>
</div>
</div>
<div role="grid">
<div role="row">
<span role="columnheader" aria-sort="other">Alphabet</span>
</div>
<div role="row">
<span role="gridcell">A</span>
</div>
<div role="row">
<span role="gridcell">B</span>
</div>
</div>
</body>
</html>
android.webkit.WebView focusable focused scrollable
android.view.View
android.widget.Button clickable focusable name='Click me!'
AXWebArea AXRoleDescription='HTML content'
AXGroup AXRoleDescription='group'
AXButton AXRoleDescription='button' AXTitle='Click me!'
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
IA2_ROLE_SECTION READONLY
ROLE_SYSTEM_PUSHBUTTON name='Click me!' FOCUSABLE
<!DOCTYPE html>
<!--
@MAC-ALLOW:AXRoleDescription=*
-->
<html>
<body>
<button type="button" onclick="alert('Hello user!')">Click me!</button>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<table>
<colgroup>
<col span="1" style="background-color:blue">
<col style="background-color:green">
</colgroup>
<tr>
<th>Browser</th>
<th>Rendering Engine</th>
</tr>
<tr>
<td>Chrome</td>
<td>Blink</td>
</tr>
</table>
</body>
</html>
android.webkit.WebView focusable focused scrollable
android.view.View
android.widget.Image clickable name='Sunspots'
AXWebArea AXRoleDescription='HTML content'
AXGroup AXRoleDescription='group'
AXImage AXRoleDescription='image'
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
IA2_ROLE_SECTION
ROLE_SYSTEM_GRAPHIC name='Sunspots' READONLY
<!DOCTYPE html>
<!--
@MAC-ALLOW:AXRoleDescription=*
-->
<html>
<body>
<figure>
<img src="pipe.jpg" alt="Sunspots" width="304" height="228">
</figure>
</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
<!DOCTYPE html>
<!--
@MAC-ALLOW:AXRole*
@MAC-ALLOW:AXSubrole*
-->
<html>
<body>
<input type="search" name="googlesearch">
</body>
</html>
android.webkit.WebView focusable focused scrollable
android.view.View
android.view.View focusable input_type=36
android.view.View
AXWebArea AXRoleDescription='HTML content'
AXGroup AXRoleDescription='group'
AXUnknown AXRoleDescription='unknown'
AXGroup AXRoleDescription='group'
AXGroup AXRoleDescription='group'
AXSlider AXRoleDescription='stepper' AXValue='0'
AXStaticText AXRoleDescription='text' AXValue=':'
AXSlider AXRoleDescription='stepper' AXValue='0'
AXSlider AXRoleDescription='stepper' AXValue='0'
AXSlider AXRoleDescription='stepper' AXValue='0'
AXButton AXRoleDescription='button'
AXButton AXRoleDescription='button'
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
IA2_ROLE_SECTION READONLY
ROLE_SYSTEM_CLIENT FOCUSABLE
IA2_ROLE_SECTION
IA2_ROLE_SECTION
ROLE_SYSTEM_SPINBUTTON name='Hours' FOCUSABLE
ROLE_SYSTEM_STATICTEXT name=':'
ROLE_SYSTEM_SPINBUTTON name='Minutes' FOCUSABLE
ROLE_SYSTEM_SPINBUTTON name='AM/PM' FOCUSABLE
ROLE_SYSTEM_SPINBUTTON
ROLE_SYSTEM_PUSHBUTTON
ROLE_SYSTEM_PUSHBUTTON
<!DOCTYPE html>
<!--
@MAC-ALLOW:AXRole*
-->
<html>
<body>
<input type="time">
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="author" content="ABC">
</head>
<body>
</body>
</html>
android.webkit.WebView focusable focused scrollable
android.view.View
AXWebArea AXRoleDescription='HTML content'
AXGroup AXRoleDescription='group'
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
IA2_ROLE_SECTION READONLY
<!DOCTYPE html>
<!--
@MAC-ALLOW:AXRoleDescription=*
-->
<html>
<body>
<meter value="2" min="0" max="10">2 out of 10</meter>
</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