diff options
author | shreeram.k <shreeram.k@samsung.com> | 2015-01-21 07:40:01 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-21 15:41:11 +0000 |
commit | cd3a95252fc67e462f1743535dd73c87bf198156 (patch) | |
tree | df38ccfa73ba443f439502a48d1df671888a5e5c /content/test/data/accessibility/aria | |
parent | 99d4c15b5ac4dd32169ef7876139bc55dde87a63 (diff) | |
download | chromium_src-cd3a95252fc67e462f1743535dd73c87bf198156.zip chromium_src-cd3a95252fc67e462f1743535dd73c87bf198156.tar.gz chromium_src-cd3a95252fc67e462f1743535dd73c87bf198156.tar.bz2 |
Add DumpAccessibilityTree tests (13,14 of 20)
BUG=170585, 170586
Review URL: https://codereview.chromium.org/857853003
Cr-Commit-Position: refs/heads/master@{#312393}
Diffstat (limited to 'content/test/data/accessibility/aria')
20 files changed, 118 insertions, 0 deletions
diff --git a/content/test/data/accessibility/aria/aria-alertdialog-expected-android.txt b/content/test/data/accessibility/aria/aria-alertdialog-expected-android.txt new file mode 100644 index 0000000..942c184 --- /dev/null +++ b/content/test/data/accessibility/aria/aria-alertdialog-expected-android.txt @@ -0,0 +1,2 @@ +android.webkit.WebView focusable focused scrollable + android.view.View live_region_type=2 diff --git a/content/test/data/accessibility/aria/aria-alertdialog-expected-mac.txt b/content/test/data/accessibility/aria/aria-alertdialog-expected-mac.txt new file mode 100644 index 0000000..234bc33 --- /dev/null +++ b/content/test/data/accessibility/aria/aria-alertdialog-expected-mac.txt @@ -0,0 +1,2 @@ +AXWebArea AXRoleDescription='HTML content' + AXGroup AXSubrole=AXApplicationAlertDialog AXRoleDescription='alertdialog' AXARIABusy='0' AXARIALive='assertive' diff --git a/content/test/data/accessibility/aria/aria-alertdialog-expected-win.txt b/content/test/data/accessibility/aria/aria-alertdialog-expected-win.txt new file mode 100644 index 0000000..9f65c14 --- /dev/null +++ b/content/test/data/accessibility/aria/aria-alertdialog-expected-win.txt @@ -0,0 +1,2 @@ +ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE + ROLE_SYSTEM_DIALOG xml-roles:alertdialog live:assertive relevant:additions text atomic:false busy:false container-live:assertive container-relevant:additions text container-atomic:false container-busy:false diff --git a/content/test/data/accessibility/aria/aria-alertdialog.html b/content/test/data/accessibility/aria/aria-alertdialog.html new file mode 100644 index 0000000..693a4b2 --- /dev/null +++ b/content/test/data/accessibility/aria/aria-alertdialog.html @@ -0,0 +1,17 @@ +<!-- +@MAC-ALLOW:AXRole* +@MAC-ALLOW:AXSubrole* +@MAC-ALLOW:AXARIALive* +@MAC-ALLOW:AXARIABusy* +@WIN-ALLOW:xml-roles* +@WIN-ALLOW:*live* +@WIN-ALLOW:*busy* +@WIN-ALLOW:*atomic* +@WIN-ALLOW:*relevant* +--> +<!DOCTYPE html> +<html> +<body> + <div role="alertdialog"></div> +</body> +</html> diff --git a/content/test/data/accessibility/aria/aria-describedby-expected-android.txt b/content/test/data/accessibility/aria/aria-describedby-expected-android.txt new file mode 100644 index 0000000..4094ee3 --- /dev/null +++ b/content/test/data/accessibility/aria/aria-describedby-expected-android.txt @@ -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' diff --git a/content/test/data/accessibility/aria/aria-describedby-expected-mac.txt b/content/test/data/accessibility/aria/aria-describedby-expected-mac.txt new file mode 100644 index 0000000..023229d --- /dev/null +++ b/content/test/data/accessibility/aria/aria-describedby-expected-mac.txt @@ -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' diff --git a/content/test/data/accessibility/aria/aria-describedby-expected-win.txt b/content/test/data/accessibility/aria/aria-describedby-expected-win.txt new file mode 100644 index 0000000..3b9f36c --- /dev/null +++ b/content/test/data/accessibility/aria/aria-describedby-expected-win.txt @@ -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 diff --git a/content/test/data/accessibility/aria/aria-describedby.html b/content/test/data/accessibility/aria/aria-describedby.html new file mode 100644 index 0000000..6032e13 --- /dev/null +++ b/content/test/data/accessibility/aria/aria-describedby.html @@ -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> diff --git a/content/test/data/accessibility/aria/aria-label-expected-android.txt b/content/test/data/accessibility/aria/aria-label-expected-android.txt new file mode 100644 index 0000000..663561d --- /dev/null +++ b/content/test/data/accessibility/aria/aria-label-expected-android.txt @@ -0,0 +1,2 @@ +android.webkit.WebView focusable focused scrollable + android.widget.CheckBox checkable clickable name='aria label' diff --git a/content/test/data/accessibility/aria/aria-label-expected-mac.txt b/content/test/data/accessibility/aria/aria-label-expected-mac.txt new file mode 100644 index 0000000..8b3a9b9 --- /dev/null +++ b/content/test/data/accessibility/aria/aria-label-expected-mac.txt @@ -0,0 +1,2 @@ +AXWebArea AXRoleDescription='HTML content' + AXCheckBox AXRoleDescription='check box' AXValue='0' AXDescription='aria label' diff --git a/content/test/data/accessibility/aria/aria-label-expected-win.txt b/content/test/data/accessibility/aria/aria-label-expected-win.txt new file mode 100644 index 0000000..b3bf644 --- /dev/null +++ b/content/test/data/accessibility/aria/aria-label-expected-win.txt @@ -0,0 +1,2 @@ +ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE + ROLE_SYSTEM_CHECKBUTTON name='aria label' IA2_STATE_CHECKABLE xml-roles:checkbox checkable:true diff --git a/content/test/data/accessibility/aria/aria-label.html b/content/test/data/accessibility/aria/aria-label.html new file mode 100644 index 0000000..582d0e6 --- /dev/null +++ b/content/test/data/accessibility/aria/aria-label.html @@ -0,0 +1,13 @@ +<!-- +@MAC-ALLOW:AXRole* +@MAC-ALLOW:AXDescription* +@WIN-ALLOW:IA2_STATE_CHECKABLE +@WIN-ALLOW:xml-roles* +@WIN-ALLOW:checkable* +--> +<!DOCTYPE html> +<html> +</body> + <div role="checkbox" aria-label="aria label"> +</body> +</html> diff --git a/content/test/data/accessibility/aria/aria-option-expected-android.txt b/content/test/data/accessibility/aria/aria-option-expected-android.txt new file mode 100644 index 0000000..425e959 --- /dev/null +++ b/content/test/data/accessibility/aria/aria-option-expected-android.txt @@ -0,0 +1,4 @@ +android.webkit.WebView focusable focused scrollable + android.widget.ListView collection item_count=2 row_count=2 + android.view.View clickable collection_item name='option 1' + android.view.View clickable collection_item name='label 2' item_index=1 row_index=1 diff --git a/content/test/data/accessibility/aria/aria-option-expected-mac.txt b/content/test/data/accessibility/aria/aria-option-expected-mac.txt new file mode 100644 index 0000000..79ad83b --- /dev/null +++ b/content/test/data/accessibility/aria/aria-option-expected-mac.txt @@ -0,0 +1,4 @@ +AXWebArea AXRoleDescription='HTML content' + AXList AXRoleDescription='list' + AXStaticText AXRoleDescription='text' AXTitle='option 1' + AXStaticText AXRoleDescription='text' AXTitle='option 2' diff --git a/content/test/data/accessibility/aria/aria-option-expected-win.txt b/content/test/data/accessibility/aria/aria-option-expected-win.txt new file mode 100644 index 0000000..b1d49983a --- /dev/null +++ b/content/test/data/accessibility/aria/aria-option-expected-win.txt @@ -0,0 +1,4 @@ +ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE + ROLE_SYSTEM_LIST xml-roles:listbox + ROLE_SYSTEM_LISTITEM name='option 1' xml-roles:option + ROLE_SYSTEM_LISTITEM name='label 2' xml-roles:option diff --git a/content/test/data/accessibility/aria/aria-option.html b/content/test/data/accessibility/aria/aria-option.html new file mode 100644 index 0000000..903f407 --- /dev/null +++ b/content/test/data/accessibility/aria/aria-option.html @@ -0,0 +1,15 @@ +<!-- +@MAC-ALLOW:AXRole* +@WIN-ALLOW:xml-roles* +--> +<!DOCTYPE html> +<html> +<body> + +<div role="listbox"> + <div role="option">option 1</div> + <div role="option" aria-label="label 2">option 2</div> +</div> + +</body> +</html> diff --git a/content/test/data/accessibility/aria/aria-scrollbar-expected-android.txt b/content/test/data/accessibility/aria/aria-scrollbar-expected-android.txt new file mode 100644 index 0000000..86f1eb2 --- /dev/null +++ b/content/test/data/accessibility/aria/aria-scrollbar-expected-android.txt @@ -0,0 +1,3 @@ +android.webkit.WebView focusable focused scrollable + android.view.View clickable focusable range range_current_value=55 + android.view.View clickable focusable range range_current_value=55 diff --git a/content/test/data/accessibility/aria/aria-scrollbar-expected-mac.txt b/content/test/data/accessibility/aria/aria-scrollbar-expected-mac.txt new file mode 100644 index 0000000..c2a71c2 --- /dev/null +++ b/content/test/data/accessibility/aria/aria-scrollbar-expected-mac.txt @@ -0,0 +1,3 @@ +AXWebArea AXRoleDescription='HTML content' + AXScrollBar AXRoleDescription='scroll bar' AXValue='55' + AXScrollBar AXRoleDescription='scroll bar' AXValue='55' diff --git a/content/test/data/accessibility/aria/aria-scrollbar-expected-win.txt b/content/test/data/accessibility/aria/aria-scrollbar-expected-win.txt new file mode 100644 index 0000000..aa73493 --- /dev/null +++ b/content/test/data/accessibility/aria/aria-scrollbar-expected-win.txt @@ -0,0 +1,3 @@ +ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE + ROLE_SYSTEM_SCROLLBAR FOCUSABLE IA2_STATE_VERTICAL xml-roles:scrollbar currentValue=55.00 + ROLE_SYSTEM_SCROLLBAR FOCUSABLE IA2_STATE_HORIZONTAL xml-roles:scrollbar currentValue=55.00 diff --git a/content/test/data/accessibility/aria/aria-scrollbar.html b/content/test/data/accessibility/aria/aria-scrollbar.html new file mode 100644 index 0000000..ccb4e90f --- /dev/null +++ b/content/test/data/accessibility/aria/aria-scrollbar.html @@ -0,0 +1,13 @@ +<!-- +@MAC-ALLOW:AXRole* +@WIN-ALLOW:xml-roles* +@WIN-ALLOW:currentValue* +@WIN-ALLOW:IA2_STATE* +--> +<!DOCTYPE html> +<html> +<body> + <div tabindex=0 aria-valuenow="55" role="scrollbar">scrollbar</div> + <div tabindex=0 aria-valuenow="55" role="scrollbar" aria-orientation="horizontal">scrollbar</div> +</body> +</html> |