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

Adding DumpAccessibilityTree Tests (8 of 20)

HTML Tags: object, ins, mark, i, legend, frameset, caption, body, th
Aria role: row, spinbutton
Aria state/property: aria-atomic

BUG=170580

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

Cr-Commit-Position: refs/heads/master@{#294800}
parent 1bd52ffd
......@@ -319,6 +319,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
RunTest(FILE_PATH_LITERAL("aria-application.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaAtomic) {
RunTest(FILE_PATH_LITERAL("aria-atomic.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityAriaAutocomplete) {
RunTest(FILE_PATH_LITERAL("aria-autocomplete.html"));
......@@ -395,6 +399,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
RunTest(FILE_PATH_LITERAL("aria-progressbar.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaRow) {
RunTest(FILE_PATH_LITERAL("aria-row.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityAriaReadonly) {
RunTest(FILE_PATH_LITERAL("aria-readonly.html"));
......@@ -441,6 +449,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityBdo) {
RunTest(FILE_PATH_LITERAL("bdo.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityBody) {
RunTest(FILE_PATH_LITERAL("body.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityBR) {
RunTest(FILE_PATH_LITERAL("br.html"));
}
......@@ -453,6 +465,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityCanvas) {
RunTest(FILE_PATH_LITERAL("canvas.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityCaption) {
RunTest(FILE_PATH_LITERAL("caption.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityCheckboxNameCalc) {
RunTest(FILE_PATH_LITERAL("checkbox-name-calc.html"));
......@@ -495,6 +511,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityForm) {
RunTest(FILE_PATH_LITERAL("form.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityFrameset) {
RunTest(FILE_PATH_LITERAL("frameset.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityHeading) {
RunTest(FILE_PATH_LITERAL("heading.html"));
}
......@@ -503,6 +523,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityHR) {
RunTest(FILE_PATH_LITERAL("hr.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityI) {
RunTest(FILE_PATH_LITERAL("i.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityIframeCoordinates) {
RunTest(FILE_PATH_LITERAL("iframe-coordinates.html"));
......@@ -542,6 +566,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
RunTest(FILE_PATH_LITERAL("input-types.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityIns) {
RunTest(FILE_PATH_LITERAL("ins.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityLabel) {
RunTest(FILE_PATH_LITERAL("label.html"));
}
......@@ -550,10 +578,18 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityLandmark) {
RunTest(FILE_PATH_LITERAL("landmark.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityLegend) {
RunTest(FILE_PATH_LITERAL("legend.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityListMarkers) {
RunTest(FILE_PATH_LITERAL("list-markers.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityMark) {
RunTest(FILE_PATH_LITERAL("mark.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityMenutypecontext) {
RunTest(FILE_PATH_LITERAL("menu-type-context.html"));
......@@ -588,6 +624,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityOl) {
RunTest(FILE_PATH_LITERAL("ol.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityObject) {
RunTest(FILE_PATH_LITERAL("object.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityOptionindatalist) {
RunTest(FILE_PATH_LITERAL("option-in-datalist.html"));
......
android.webkit.WebView focusable focused scrollable
android.view.View clickable focusable name='This test is for aria-atomic="false"' live_region_type=1
android.view.View clickable focusable name='This test is for aria-atomic="true"' live_region_type=1
AXWebArea
AXGroup AXARIAAtomic='0'
AXStaticText AXValue='This test is for aria-atomic="false"' AXARIAAtomic='0'
AXGroup AXARIAAtomic='1'
AXStaticText AXValue='This test is for aria-atomic="true"' AXARIAAtomic='0'
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
ROLE_SYSTEM_CLIENT FOCUSABLE atomic:false container-atomic:false
ROLE_SYSTEM_STATICTEXT name='This test is for aria-atomic="false"' container-atomic:false
ROLE_SYSTEM_CLIENT FOCUSABLE atomic:true container-atomic:true
ROLE_SYSTEM_STATICTEXT name='This test is for aria-atomic="true"' container-atomic:true
<!--
@MAC-ALLOW:AXARIAAtomic=*
@WIN-ALLOW:atomic:*
@WIN-ALLOW:container-atomic:*
-->
<!DOCTYPE html>
<html>
<body>
<p id="ariaatomicfalse" role="log" aria-live="polite" aria-atomic="false" tabindex="0"> This test is for aria-atomic="false" </p>
<p id="ariaatomictrue" role="log" aria-live="polite" aria-atomic="true" tabindex="1"> This test is for aria-atomic="true" </p>
</body>
</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.view.View clickable name='This test is for body tag'
AXWebArea
AXGroup
AXStaticText AXValue='This test is for body tag'
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
IA2_ROLE_PARAGRAPH
ROLE_SYSTEM_STATICTEXT name='This test is for body tag'
<!DOCTYPE html>
<html>
<body>
<p>This test is for body tag</p>
</body>
</html>
android.webkit.WebView focusable focused scrollable
android.widget.GridView collection name='Browser and Engine' 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='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 AXTitle='Browser and Engine'
AXRow
AXCell
AXStaticText AXValue='Browser'
AXCell
AXStaticText AXValue='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 name='Browser and Engine' READONLY
ROLE_SYSTEM_ROW READONLY
ROLE_SYSTEM_CELL
ROLE_SYSTEM_STATICTEXT name='Browser'
ROLE_SYSTEM_CELL
ROLE_SYSTEM_STATICTEXT name='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>
<table>
<caption>Browser and Engine</caption>
<tr>
<th>Browser</th>
<th>Engine</th>
</tr>
<tr>
<td>Chrome</td>
<td>Blink</td>
</tr>
<tr>
<td>Safari</td>
<td>WebKit</td>
</tr>
</table>
</body>
</html>
#<skip -- Flaky failure crbug.com/414157>
AXWebArea
AXUnknown
AXUnknown
AXWebArea
AXGroup
AXStaticText AXValue='My favorite browser is'
AXStaticText AXValue='ABC'
AXStaticText AXValue='Chrome'
AXStaticText AXValue='!'
AXUnknown
AXUnknown
AXWebArea
AXGroup
AXStaticText AXValue='This test is to check '
AXStaticText AXValue='mark tag'
AXStaticText AXValue='.'
#<skip -- Flaky failure crbug.com/414157>
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
ROLE_SYSTEM_CLIENT FOCUSABLE
IA2_ROLE_SCROLL_PANE
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
IA2_ROLE_PARAGRAPH
ROLE_SYSTEM_STATICTEXT name='My favorite browser is '
ROLE_SYSTEM_STATICTEXT name='ABC'
ROLE_SYSTEM_STATICTEXT name='Chrome'
ROLE_SYSTEM_STATICTEXT name='!'
ROLE_SYSTEM_CLIENT FOCUSABLE
IA2_ROLE_SCROLL_PANE
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
IA2_ROLE_PARAGRAPH
ROLE_SYSTEM_STATICTEXT name='This test is to check '
ROLE_SYSTEM_STATICTEXT name='mark tag'
ROLE_SYSTEM_STATICTEXT name='.'
<!DOCTYPE html>
<html>
<frameset cols="25%,*">
<frame src="ins.html">
<frame src="mark.html">
</frameset>
</html>
android.webkit.WebView focusable focused scrollable
android.view.View clickable name='This is to checkitalic propertyusing i tag.'
AXWebArea
AXGroup
AXStaticText AXValue='This is to check '
AXStaticText AXValue='italic property'
AXStaticText AXValue=' using i tag.'
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
IA2_ROLE_PARAGRAPH
ROLE_SYSTEM_STATICTEXT name='This is to check '
ROLE_SYSTEM_STATICTEXT name='italic property'
ROLE_SYSTEM_STATICTEXT name=' using i tag.'
<!DOCTYPE html>
<html>
<body>
<p>This is to check <i>italic property</i> using i tag.</p>
</body>
</html>
#<skip -- crbug.com/413531>
android.webkit.WebView focusable focused scrollable
android.view.View clickable name='My favorite browser isABCChrome!'
AXWebArea
AXGroup
AXStaticText AXValue='My favorite browser is '
AXStaticText AXValue='ABC'
AXStaticText AXValue='Chrome'
AXStaticText AXValue='!'
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
IA2_ROLE_PARAGRAPH
ROLE_SYSTEM_STATICTEXT name='My favorite browser is '
ROLE_SYSTEM_STATICTEXT name='ABC'
ROLE_SYSTEM_STATICTEXT name='Chrome'
ROLE_SYSTEM_STATICTEXT name='!'
<!DOCTYPE html>
<html>
<body>
<p>My favorite browser is <del>ABC</del> <ins>Chrome</ins>!</p>
</body>
</html>
android.webkit.WebView focusable focused scrollable
android.view.View
android.view.View clickable name='Browser Engine's:'
android.view.View
android.view.View clickable name='Browser: '
android.widget.EditText editable_text focusable input_type=1
android.view.View clickable name='Rendering Engine: '
android.widget.EditText editable_text focusable input_type=1
AXWebArea
AXGroup AXTitleUIElement='AXUnknown'
AXUnknown
AXStaticText AXValue='Browser Engine's:'
AXGroup
AXStaticText AXValue='Browser: '
AXTextField
AXStaticText AXValue='Rendering Engine: '
AXTextField
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
ROLE_SYSTEM_GROUPING name='Browser Engine's:' READONLY
ROLE_SYSTEM_CLIENT
ROLE_SYSTEM_STATICTEXT name='Browser Engine's:'
IA2_ROLE_SECTION READONLY
ROLE_SYSTEM_STATICTEXT name='Browser: '
ROLE_SYSTEM_TEXT FOCUSABLE
ROLE_SYSTEM_STATICTEXT name='Rendering Engine: '
ROLE_SYSTEM_TEXT FOCUSABLE
<!DOCTYPE html>
<!--
@MAC-ALLOW:AXTitleUIElement*
-->
<html>
<body>
<form>
<fieldset>
<legend>Browser Engine's:</legend>
Browser: <input type="text"><br>
Rendering Engine: <input type="text"><br>
</fieldset>
</form>
</body>
</html>
#<skip -- crbug.com/413531>
android.webkit.WebView focusable focused scrollable
android.view.View clickable name='This test is to checkmark tag.'
AXWebArea
AXGroup
AXStaticText AXValue='This test is to check '
AXStaticText AXValue='mark tag'
AXStaticText AXValue='.'
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
IA2_ROLE_PARAGRAPH
ROLE_SYSTEM_STATICTEXT name='This test is to check '
ROLE_SYSTEM_STATICTEXT name='mark tag'
ROLE_SYSTEM_STATICTEXT name='.'
<!DOCTYPE html>
<html>
<body>
<p>This test is to check <mark>mark tag</mark>.</p>
</body>
</html>
android.webkit.WebView focusable focused scrollable
android.view.View
android.view.View focusable
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
IA2_ROLE_SECTION READONLY
ROLE_SYSTEM_CLIENT FOCUSABLE
<!DOCTYPE html>
<html>
<body>
<object width="400" height="400" data="../../../../media/test/data/bear.swf">
</object>
</body>
</html>
android.webkit.WebView focusable focused scrollable name='Table example'
android.widget.GridView collection row_count=2 column_count=3
android.widget.GridView collection row_count=3 column_count=2
android.view.View
android.view.View clickable collection_item name='A' row_span=1 column_span=1
android.view.View clickable collection_item name='B' row_span=1 column_index=1 column_span=1
android.view.View clickable collection_item name='C' row_span=1 column_index=2 column_span=1
android.view.View clickable collection_item name='Pair' row_span=1 column_span=1
android.view.View clickable collection_item name='Single' row_span=1 column_index=1 column_span=1
android.view.View
android.view.View clickable collection_item name='D' row_index=1 row_span=1 column_span=1
android.view.View clickable collection_item name='E' row_index=1 row_span=1 column_index=1 column_span=1
android.view.View clickable collection_item name='F' row_index=1 row_span=1 column_index=2 column_span=1
android.view.View clickable collection_item name='AB' row_index=1 row_span=1 column_span=1
android.view.View clickable collection_item name='B' row_index=1 row_span=1 column_index=1 column_span=1
android.view.View
android.view.View clickable collection_item name='CD' row_index=2 row_span=1 column_span=1
android.view.View clickable collection_item name='D' row_index=2 row_span=1 column_index=1 column_span=1
android.view.View
android.view.View
android.view.View
......@@ -2,19 +2,19 @@ AXWebArea AXTitle='Table example'
AXTable
AXRow AXIndex='0'
AXCell AXColumnIndexRange={"len":1,"loc":0} AXRowIndexRange={"len":1,"loc":0}
AXStaticText AXValue='A'
AXStaticText AXValue='Pair'
AXCell AXColumnIndexRange={"len":1,"loc":1} AXRowIndexRange={"len":1,"loc":0}
AXStaticText AXValue='B'
AXCell AXColumnIndexRange={"len":1,"loc":2} AXRowIndexRange={"len":1,"loc":0}
AXStaticText AXValue='C'
AXStaticText AXValue='Single'
AXRow AXIndex='1'
AXCell AXColumnIndexRange={"len":1,"loc":0} AXRowIndexRange={"len":1,"loc":1}
AXStaticText AXValue='D'
AXStaticText AXValue='AB'
AXCell AXColumnIndexRange={"len":1,"loc":1} AXRowIndexRange={"len":1,"loc":1}
AXStaticText AXValue='E'
AXCell AXColumnIndexRange={"len":1,"loc":2} AXRowIndexRange={"len":1,"loc":1}
AXStaticText AXValue='F'
AXStaticText AXValue='B'
AXRow AXIndex='2'
AXCell AXColumnIndexRange={"len":1,"loc":0} AXRowIndexRange={"len":1,"loc":2}
AXStaticText AXValue='CD'
AXCell AXColumnIndexRange={"len":1,"loc":1} AXRowIndexRange={"len":1,"loc":2}
AXStaticText AXValue='D'
AXColumn AXIndex='0'
AXColumn AXIndex='1'
AXColumn AXIndex='2'
AXGroup
......@@ -12,14 +12,16 @@
<table border=1>
<tr>
<td>A</td>
<td>B</td>
<td>C</td>
<th>Pair</th>
<th>Single</th>
</tr>
<tr>
<td>AB</td>
<td>B</td>
</tr>
<tr>
<td>CD</td>
<td>D</td>
<td>E</td>
<td>F</td>
</tr>
</table>
......
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