summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorshreeram.k <shreeram.k@samsung.com>2015-01-21 07:40:01 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-21 15:41:11 +0000
commitcd3a95252fc67e462f1743535dd73c87bf198156 (patch)
treedf38ccfa73ba443f439502a48d1df671888a5e5c /content
parent99d4c15b5ac4dd32169ef7876139bc55dde87a63 (diff)
downloadchromium_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')
-rw-r--r--content/browser/accessibility/dump_accessibility_tree_browsertest.cc38
-rw-r--r--content/test/data/accessibility/aria/aria-alertdialog-expected-android.txt2
-rw-r--r--content/test/data/accessibility/aria/aria-alertdialog-expected-mac.txt2
-rw-r--r--content/test/data/accessibility/aria/aria-alertdialog-expected-win.txt2
-rw-r--r--content/test/data/accessibility/aria/aria-alertdialog.html17
-rw-r--r--content/test/data/accessibility/aria/aria-describedby-expected-android.txt4
-rw-r--r--content/test/data/accessibility/aria/aria-describedby-expected-mac.txt5
-rw-r--r--content/test/data/accessibility/aria/aria-describedby-expected-win.txt5
-rw-r--r--content/test/data/accessibility/aria/aria-describedby.html13
-rw-r--r--content/test/data/accessibility/aria/aria-label-expected-android.txt2
-rw-r--r--content/test/data/accessibility/aria/aria-label-expected-mac.txt2
-rw-r--r--content/test/data/accessibility/aria/aria-label-expected-win.txt2
-rw-r--r--content/test/data/accessibility/aria/aria-label.html13
-rw-r--r--content/test/data/accessibility/aria/aria-option-expected-android.txt4
-rw-r--r--content/test/data/accessibility/aria/aria-option-expected-mac.txt4
-rw-r--r--content/test/data/accessibility/aria/aria-option-expected-win.txt4
-rw-r--r--content/test/data/accessibility/aria/aria-option.html15
-rw-r--r--content/test/data/accessibility/aria/aria-scrollbar-expected-android.txt3
-rw-r--r--content/test/data/accessibility/aria/aria-scrollbar-expected-mac.txt3
-rw-r--r--content/test/data/accessibility/aria/aria-scrollbar-expected-win.txt3
-rw-r--r--content/test/data/accessibility/aria/aria-scrollbar.html13
-rw-r--r--content/test/data/accessibility/html/keygen-expected-android.txt4
-rw-r--r--content/test/data/accessibility/html/keygen-expected-mac.txt7
-rw-r--r--content/test/data/accessibility/html/keygen-expected-win.txt7
-rw-r--r--content/test/data/accessibility/html/keygen.html15
-rw-r--r--content/test/data/accessibility/html/optgroup-expected-android.txt4
-rw-r--r--content/test/data/accessibility/html/optgroup-expected-mac.txt15
-rw-r--r--content/test/data/accessibility/html/optgroup-expected-win.txt15
-rw-r--r--content/test/data/accessibility/html/optgroup.html28
-rw-r--r--content/test/data/accessibility/html/style-expected-android.txt1
-rw-r--r--content/test/data/accessibility/html/style-expected-mac.txt1
-rw-r--r--content/test/data/accessibility/html/style-expected-win.txt1
-rw-r--r--content/test/data/accessibility/html/style.html9
-rw-r--r--content/test/data/accessibility/html/sup-expected-android.txt2
-rw-r--r--content/test/data/accessibility/html/sup-expected-mac.txt1
-rw-r--r--content/test/data/accessibility/html/sup-expected-win.txt1
-rw-r--r--content/test/data/accessibility/html/sup.html8
37 files changed, 275 insertions, 0 deletions
diff --git a/content/browser/accessibility/dump_accessibility_tree_browsertest.cc b/content/browser/accessibility/dump_accessibility_tree_browsertest.cc
index b8c90e7..5ce4cc6 100644
--- a/content/browser/accessibility/dump_accessibility_tree_browsertest.cc
+++ b/content/browser/accessibility/dump_accessibility_tree_browsertest.cc
@@ -143,6 +143,11 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaAlert) {
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
+ AccessibilityAriaAlertDialog) {
+ RunAriaTest(FILE_PATH_LITERAL("aria-alertdialog.html"));
+}
+
+IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityAriaApplication) {
RunAriaTest(FILE_PATH_LITERAL("aria-application.html"));
}
@@ -210,6 +215,11 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaDefinition) {
RunAriaTest(FILE_PATH_LITERAL("aria-definition.html"));
}
+IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
+ AccessibilityAriaDescribedBy) {
+ RunAriaTest(FILE_PATH_LITERAL("aria-describedby.html"));
+}
+
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaDialog) {
RunAriaTest(FILE_PATH_LITERAL("aria-dialog.html"));
}
@@ -259,6 +269,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaInvalid) {
RunAriaTest(FILE_PATH_LITERAL("aria-invalid.html"));
}
+IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaLabel) {
+ RunAriaTest(FILE_PATH_LITERAL("aria-label.html"));
+}
+
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityAriaLabelledByHeading) {
RunAriaTest(FILE_PATH_LITERAL("aria-labelledby-heading.html"));
@@ -377,6 +391,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaNone) {
RunAriaTest(FILE_PATH_LITERAL("aria-none.html"));
}
+IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaOption) {
+ RunAriaTest(FILE_PATH_LITERAL("aria-option.html"));
+}
+
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityAriaPresentation) {
RunAriaTest(FILE_PATH_LITERAL("aria-presentation.html"));
@@ -428,6 +446,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaRowHeader) {
RunAriaTest(FILE_PATH_LITERAL("aria-rowheader.html"));
}
+IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaScrollbar) {
+ RunAriaTest(FILE_PATH_LITERAL("aria-scrollbar.html"));
+}
+
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaSearch) {
RunAriaTest(FILE_PATH_LITERAL("aria-search.html"));
}
@@ -837,6 +859,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityIns) {
RunHtmlTest(FILE_PATH_LITERAL("ins.html"));
}
+IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityKeygen) {
+ RunHtmlTest(FILE_PATH_LITERAL("keygen.html"));
+}
+
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityLabel) {
RunHtmlTest(FILE_PATH_LITERAL("label.html"));
}
@@ -931,6 +957,10 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityObject) {
RunHtmlTest(FILE_PATH_LITERAL("object.html"));
}
+IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityOptgroup) {
+ RunHtmlTest(FILE_PATH_LITERAL("optgroup.html"));
+}
+
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
AccessibilityOptionindatalist) {
RunHtmlTest(FILE_PATH_LITERAL("option-in-datalist.html"));
@@ -997,10 +1027,18 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityStrong) {
RunHtmlTest(FILE_PATH_LITERAL("strong.html"));
}
+IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityStyle) {
+ RunHtmlTest(FILE_PATH_LITERAL("style.html"));
+}
+
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySub) {
RunHtmlTest(FILE_PATH_LITERAL("sub.html"));
}
+IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySup) {
+ RunHtmlTest(FILE_PATH_LITERAL("sup.html"));
+}
+
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySummary) {
RunHtmlTest(FILE_PATH_LITERAL("summary.html"));
}
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>
diff --git a/content/test/data/accessibility/html/keygen-expected-android.txt b/content/test/data/accessibility/html/keygen-expected-android.txt
new file mode 100644
index 0000000..0053ecc
--- /dev/null
+++ b/content/test/data/accessibility/html/keygen-expected-android.txt
@@ -0,0 +1,4 @@
+android.webkit.WebView focusable focused scrollable
+ android.view.View
+ android.view.View focusable
+ android.widget.Spinner clickable focusable name='2048 (High Grade)'
diff --git a/content/test/data/accessibility/html/keygen-expected-mac.txt b/content/test/data/accessibility/html/keygen-expected-mac.txt
new file mode 100644
index 0000000..902873a
--- /dev/null
+++ b/content/test/data/accessibility/html/keygen-expected-mac.txt
@@ -0,0 +1,7 @@
+AXWebArea
+ AXGroup
+ AXGroup
+ AXPopUpButton AXValue='2048 (High Grade)'
+ AXUnknown
+ AXMenuItem AXValue='2048 (High Grade)'
+ AXMenuItem AXValue='1024 (Medium Grade)'
diff --git a/content/test/data/accessibility/html/keygen-expected-win.txt b/content/test/data/accessibility/html/keygen-expected-win.txt
new file mode 100644
index 0000000..1f82588
--- /dev/null
+++ b/content/test/data/accessibility/html/keygen-expected-win.txt
@@ -0,0 +1,7 @@
+ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
+ IA2_ROLE_SECTION role_name='body'
+ IA2_ROLE_SECTION FOCUSABLE invalid:false role_name='keygen'
+ ROLE_SYSTEM_COMBOBOX COLLAPSED FOCUSABLE HASPOPUP invalid:false
+ ROLE_SYSTEM_CLIENT INVISIBLE
+ ROLE_SYSTEM_LISTITEM SELECTED FOCUSABLE SELECTABLE
+ ROLE_SYSTEM_LISTITEM INVISIBLE FOCUSABLE SELECTABLE
diff --git a/content/test/data/accessibility/html/keygen.html b/content/test/data/accessibility/html/keygen.html
new file mode 100644
index 0000000..2863421
--- /dev/null
+++ b/content/test/data/accessibility/html/keygen.html
@@ -0,0 +1,15 @@
+<!--
+@WIN-ALLOW:SELECTED
+@WIN-ALLOW:SELECTABLE
+@WIN-ALLOW:invalid*
+@WIN-ALLOW:role_name*
+@WIN-ALLOW:COLLAPSED
+@WIN-ALLOW:INVISIBLE
+@WIN-ALLOW:HASPOPUP
+-->
+<!DOCTYPE html>
+<html>
+<body>
+ <keygen name="security">
+</body>
+</html>
diff --git a/content/test/data/accessibility/html/optgroup-expected-android.txt b/content/test/data/accessibility/html/optgroup-expected-android.txt
new file mode 100644
index 0000000..9264883
--- /dev/null
+++ b/content/test/data/accessibility/html/optgroup-expected-android.txt
@@ -0,0 +1,4 @@
+android.webkit.WebView focusable focused scrollable
+ android.view.View
+ android.widget.Spinner clickable focusable name='
+'
diff --git a/content/test/data/accessibility/html/optgroup-expected-mac.txt b/content/test/data/accessibility/html/optgroup-expected-mac.txt
new file mode 100644
index 0000000..0bd690d
--- /dev/null
+++ b/content/test/data/accessibility/html/optgroup-expected-mac.txt
@@ -0,0 +1,15 @@
+AXWebArea AXRoleDescription='HTML content'
+ AXGroup AXRoleDescription='group'
+ AXList AXRoleDescription='list'
+ AXGroup AXRoleDescription='group'
+ AXStaticText AXRoleDescription='text' AXValue='Enabled'
+ AXStaticText AXRoleDescription='text' AXValue='One'
+ AXStaticText AXRoleDescription='text' AXValue='Two'
+ AXStaticText AXRoleDescription='text' AXValue='Three'
+ AXStaticText AXRoleDescription='text' AXValue='Four'
+ AXGroup AXRoleDescription='group'
+ AXStaticText AXRoleDescription='text' AXValue='Disabled'
+ AXStaticText AXRoleDescription='text' AXValue='One'
+ AXStaticText AXRoleDescription='text' AXValue='Two'
+ AXStaticText AXRoleDescription='text' AXValue='Three'
+ AXStaticText AXRoleDescription='text' AXValue='Four'
diff --git a/content/test/data/accessibility/html/optgroup-expected-win.txt b/content/test/data/accessibility/html/optgroup-expected-win.txt
new file mode 100644
index 0000000..6f3c13b
--- /dev/null
+++ b/content/test/data/accessibility/html/optgroup-expected-win.txt
@@ -0,0 +1,15 @@
+ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
+ IA2_ROLE_SECTION
+ ROLE_SYSTEM_LIST FOCUSABLE IA2_STATE_VERTICAL invalid:false
+ ROLE_SYSTEM_GROUPING name='Enabled' xml-roles:group
+ ROLE_SYSTEM_STATICTEXT name='Enabled'
+ ROLE_SYSTEM_LISTITEM name='One' FOCUSABLE SELECTABLE
+ ROLE_SYSTEM_LISTITEM name='Two' FOCUSABLE SELECTABLE
+ ROLE_SYSTEM_LISTITEM name='Three' FOCUSABLE SELECTABLE
+ ROLE_SYSTEM_LISTITEM name='Four' FOCUSABLE SELECTABLE
+ ROLE_SYSTEM_GROUPING name='Disabled' xml-roles:group
+ ROLE_SYSTEM_STATICTEXT name='Disabled'
+ ROLE_SYSTEM_LISTITEM name='One'
+ ROLE_SYSTEM_LISTITEM name='Two'
+ ROLE_SYSTEM_LISTITEM name='Three'
+ ROLE_SYSTEM_LISTITEM name='Four'
diff --git a/content/test/data/accessibility/html/optgroup.html b/content/test/data/accessibility/html/optgroup.html
new file mode 100644
index 0000000..bef8d42
--- /dev/null
+++ b/content/test/data/accessibility/html/optgroup.html
@@ -0,0 +1,28 @@
+<!--
+@MAC-ALLOW:AXRole*
+@WIN-ALLOW:xml-roles*
+@WIN-ALLOW:IA2_STATE_VERTICAL
+@WIN-ALLOW:SELECTABLE
+@WIN-ALLOW:invalid*
+-->
+<!DOCTYPE html>
+<html>
+<body>
+
+<select size="10" id="listbox">
+<optgroup label="Enabled" id="listbox_optgroup_enabled">
+ <option value="listbox_e1" id="listbox_option_enabled_one">One</option>
+ <option value="listbox_e2">Two</option>
+ <option value="listbox_e3">Three</option>
+ <option value="listbox_e4">Four</option>
+</optgroup>
+<optgroup label="Disabled" disabled id="listbox_optgroup_disabled">
+ <option value="listbox_d1" id="listbox_option_disabled_one">One</option>
+ <option value="listbox_d2">Two</option>
+ <option value="listbox_d3">Three</option>
+ <option value="listbox_d4">Four</option>
+</optgroup>
+</select>
+
+</body>
+</html>
diff --git a/content/test/data/accessibility/html/style-expected-android.txt b/content/test/data/accessibility/html/style-expected-android.txt
new file mode 100644
index 0000000..d7df040
--- /dev/null
+++ b/content/test/data/accessibility/html/style-expected-android.txt
@@ -0,0 +1 @@
+#<skip - Do not expose this object>
diff --git a/content/test/data/accessibility/html/style-expected-mac.txt b/content/test/data/accessibility/html/style-expected-mac.txt
new file mode 100644
index 0000000..d7df040
--- /dev/null
+++ b/content/test/data/accessibility/html/style-expected-mac.txt
@@ -0,0 +1 @@
+#<skip - Do not expose this object>
diff --git a/content/test/data/accessibility/html/style-expected-win.txt b/content/test/data/accessibility/html/style-expected-win.txt
new file mode 100644
index 0000000..d7df040
--- /dev/null
+++ b/content/test/data/accessibility/html/style-expected-win.txt
@@ -0,0 +1 @@
+#<skip - Do not expose this object>
diff --git a/content/test/data/accessibility/html/style.html b/content/test/data/accessibility/html/style.html
new file mode 100644
index 0000000..d6dcaa5
--- /dev/null
+++ b/content/test/data/accessibility/html/style.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+</style>
+</head>
+<body>
+</body>
+</html>
diff --git a/content/test/data/accessibility/html/sup-expected-android.txt b/content/test/data/accessibility/html/sup-expected-android.txt
new file mode 100644
index 0000000..26809fa
--- /dev/null
+++ b/content/test/data/accessibility/html/sup-expected-android.txt
@@ -0,0 +1,2 @@
+android.webkit.WebView focusable focused scrollable
+ android.view.View clickable name='This text containssuperscripttext.'
diff --git a/content/test/data/accessibility/html/sup-expected-mac.txt b/content/test/data/accessibility/html/sup-expected-mac.txt
new file mode 100644
index 0000000..5d7ed88
--- /dev/null
+++ b/content/test/data/accessibility/html/sup-expected-mac.txt
@@ -0,0 +1 @@
+#<skip - Doesn't have an accessible>
diff --git a/content/test/data/accessibility/html/sup-expected-win.txt b/content/test/data/accessibility/html/sup-expected-win.txt
new file mode 100644
index 0000000..5d7ed88
--- /dev/null
+++ b/content/test/data/accessibility/html/sup-expected-win.txt
@@ -0,0 +1 @@
+#<skip - Doesn't have an accessible>
diff --git a/content/test/data/accessibility/html/sup.html b/content/test/data/accessibility/html/sup.html
new file mode 100644
index 0000000..48ac430
--- /dev/null
+++ b/content/test/data/accessibility/html/sup.html
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<html>
+<body>
+
+<p>This text contains<sup>superscript</sup>text.</p>
+
+</body>
+</html>