summaryrefslogtreecommitdiffstats
path: root/content/test
diff options
context:
space:
mode:
authorje_julie.kim <je_julie.kim@samsung.com>2015-05-26 18:34:43 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-27 01:35:14 +0000
commita84659a4eafb7b548f47aac86f7d6c7dd0e05cdb (patch)
treea64401837ce55fc89fd37a44bd4080214e125e44 /content/test
parent6923f6e621feb723ec4da300fe0d565d8347e98e (diff)
downloadchromium_src-a84659a4eafb7b548f47aac86f7d6c7dd0e05cdb.zip
chromium_src-a84659a4eafb7b548f47aac86f7d6c7dd0e05cdb.tar.gz
chromium_src-a84659a4eafb7b548f47aac86f7d6c7dd0e05cdb.tar.bz2
Handles conversion rule for TimeRole and updates InputTimeRole.
This patch replaces WebAXRoleTime with WebAXInputRoleTime to handle for input element with time type and uses WebAXRoleTime for Time element. It's mapped to ROLE_SYSTEM_TEXT, IA2_ROLE_TEXT_FRAME and NSAccessibilityGroupRole as described from http://rawgit.com/w3c/aria/master/html-aam/html-aam.html#el-time. It also updates the role for Input Time type with ROLE_SYSTEM_GROUPING. BUG=480861 Review URL: https://codereview.chromium.org/1132963002 Cr-Commit-Position: refs/heads/master@{#331509}
Diffstat (limited to 'content/test')
-rw-r--r--content/test/data/accessibility/html/input-time-expected-win.txt2
-rw-r--r--content/test/data/accessibility/html/time-expected-android.txt5
-rw-r--r--content/test/data/accessibility/html/time-expected-mac.txt7
-rw-r--r--content/test/data/accessibility/html/time-expected-win.txt7
-rw-r--r--content/test/data/accessibility/html/time.html7
5 files changed, 23 insertions, 5 deletions
diff --git a/content/test/data/accessibility/html/input-time-expected-win.txt b/content/test/data/accessibility/html/input-time-expected-win.txt
index 88e957a..82e118d 100644
--- a/content/test/data/accessibility/html/input-time-expected-win.txt
+++ b/content/test/data/accessibility/html/input-time-expected-win.txt
@@ -1,6 +1,6 @@
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
++IA2_ROLE_SECTION
-++++ROLE_SYSTEM_SPINBUTTON FOCUSABLE
+++++ROLE_SYSTEM_GROUPING FOCUSABLE
++++++IA2_ROLE_SECTION
++++++++IA2_ROLE_SECTION
++++++++++ROLE_SYSTEM_SPINBUTTON name='Hours' FOCUSABLE
diff --git a/content/test/data/accessibility/html/time-expected-android.txt b/content/test/data/accessibility/html/time-expected-android.txt
index 48e667f..38c5f50 100644
--- a/content/test/data/accessibility/html/time-expected-android.txt
+++ b/content/test/data/accessibility/html/time-expected-android.txt
@@ -1 +1,4 @@
-#<skip - Time element is not supported>
+android.webkit.WebView focusable focused scrollable
+++android.view.View
+++++android.view.View clickable name='10:00'
+++++android.view.View clickable name='Valentines day'
diff --git a/content/test/data/accessibility/html/time-expected-mac.txt b/content/test/data/accessibility/html/time-expected-mac.txt
index 48e667f..80edddc 100644
--- a/content/test/data/accessibility/html/time-expected-mac.txt
+++ b/content/test/data/accessibility/html/time-expected-mac.txt
@@ -1 +1,6 @@
-#<skip - Time element is not supported>
+AXWebArea AXRoleDescription='HTML content'
+++AXGroup AXRoleDescription='group'
+++++AXGroup AXRoleDescription='group'
+++++++AXStaticText AXRoleDescription='text' AXValue='10:00'
+++++AXGroup AXRoleDescription='group'
+++++++AXStaticText AXRoleDescription='text' AXValue='Valentines day' \ No newline at end of file
diff --git a/content/test/data/accessibility/html/time-expected-win.txt b/content/test/data/accessibility/html/time-expected-win.txt
index 48e667f..6629902 100644
--- a/content/test/data/accessibility/html/time-expected-win.txt
+++ b/content/test/data/accessibility/html/time-expected-win.txt
@@ -1 +1,6 @@
-#<skip - Time element is not supported>
+ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE
+++IA2_ROLE_SECTION
+++++IA2_ROLE_TEXT_FRAME
+++++++ROLE_SYSTEM_STATICTEXT name='10:00'
+++++IA2_ROLE_TEXT_FRAME
+++++++ROLE_SYSTEM_STATICTEXT name='Valentines day' \ No newline at end of file
diff --git a/content/test/data/accessibility/html/time.html b/content/test/data/accessibility/html/time.html
index 46cd682..56ccb53 100644
--- a/content/test/data/accessibility/html/time.html
+++ b/content/test/data/accessibility/html/time.html
@@ -1,6 +1,11 @@
+<!--
+@MAC-ALLOW:AXRole*
+@WIN-ALLOW:IA2_STATE*
+-->
<!DOCTYPE html>
<html>
<body>
- <time>10.00am</time>
+ <time>10:00</time>
+ <time datetime="2015-02-14 20:00">Valentines day</time>
</body>
</html>