diff options
author | dmazzoni@google.com <dmazzoni@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-29 15:39:19 +0000 |
---|---|---|
committer | dmazzoni@google.com <dmazzoni@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-29 15:39:19 +0000 |
commit | 02539ee68c9e076e9e947c40e3a5fdd807480375 (patch) | |
tree | 8191439622be2a0aa7d4e7e42574307da68969e0 /content/test/data | |
parent | 6db305c4ce03efa03d4546ae8fc4b1d91faaccef (diff) | |
download | chromium_src-02539ee68c9e076e9e947c40e3a5fdd807480375.zip chromium_src-02539ee68c9e076e9e947c40e3a5fdd807480375.tar.gz chromium_src-02539ee68c9e076e9e947c40e3a5fdd807480375.tar.bz2 |
Implement all missing table accessibility methods on Mac.
DumpAccessibilityTree tests capture index, rowspan, and colspan.
Manual testing with VoiceOver confirms that:
* VoiceOver will now focus a focusable control inside a table
by default.
* Moving between cells in a table reads out the headers too.
BUG=173681,231802
R=aboxhall@chromium.org
Review URL: https://codereview.chromium.org/13932035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197046 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test/data')
6 files changed, 86 insertions, 0 deletions
diff --git a/content/test/data/accessibility/table-simple-expected-mac.txt b/content/test/data/accessibility/table-simple-expected-mac.txt new file mode 100644 index 0000000..798e4c7 --- /dev/null +++ b/content/test/data/accessibility/table-simple-expected-mac.txt @@ -0,0 +1,20 @@ +AXWebArea AXTitle='Table example' + AXTable + AXRow AXIndex='0' + AXCell AXColumnIndexRange={"len":1,"loc":0} AXRowIndexRange={"len":1,"loc":0} + AXStaticText AXValue='A' + 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' + AXRow AXIndex='1' + AXCell AXColumnIndexRange={"len":1,"loc":0} AXRowIndexRange={"len":1,"loc":1} + AXStaticText AXValue='D' + 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' + AXColumn AXIndex='0' + AXColumn AXIndex='1' + AXColumn AXIndex='2' + AXGroup diff --git a/content/test/data/accessibility/table-simple-expected-win.txt b/content/test/data/accessibility/table-simple-expected-win.txt new file mode 100644 index 0000000..839b7a2 --- /dev/null +++ b/content/test/data/accessibility/table-simple-expected-win.txt @@ -0,0 +1 @@ +#<skip - we don't dump table attrs on win yet> diff --git a/content/test/data/accessibility/table-simple.html b/content/test/data/accessibility/table-simple.html new file mode 100644 index 0000000..9bfbbf8 --- /dev/null +++ b/content/test/data/accessibility/table-simple.html @@ -0,0 +1,27 @@ +<!doctype html> +<!-- +@MAC-ALLOW:AXIndex=* +@MAC-ALLOW:AXColumnIndexRange=* +@MAC-ALLOW:AXRowIndexRange=* +--> +<html> +<head> + <title>Table example</title> +</head> +<body> + +<table border=1> + <tr> + <td>A</td> + <td>B</td> + <td>C</td> + </tr> + <tr> + <td>D</td> + <td>E</td> + <td>F</td> + </tr> +</table> + +</body> +</html> diff --git a/content/test/data/accessibility/table-spans-expected-mac.txt b/content/test/data/accessibility/table-spans-expected-mac.txt new file mode 100644 index 0000000..55160c1 --- /dev/null +++ b/content/test/data/accessibility/table-spans-expected-mac.txt @@ -0,0 +1,13 @@ +AXWebArea AXTitle='Table example with rowspan and colspan' + AXTable + AXRow AXIndex='0' + AXCell AXColumnIndexRange={"len":1,"loc":0} AXRowIndexRange={"len":2,"loc":0} + AXStaticText AXValue='AD' + AXCell AXColumnIndexRange={"len":2,"loc":1} AXRowIndexRange={"len":1,"loc":0} + AXStaticText AXValue='BC' + AXRow AXIndex='1' + AXCell AXColumnIndexRange={"len":2,"loc":1} AXRowIndexRange={"len":1,"loc":1} + AXStaticText AXValue='EF' + AXColumn AXIndex='0' + AXColumn AXIndex='1' + AXGroup diff --git a/content/test/data/accessibility/table-spans-expected-win.txt b/content/test/data/accessibility/table-spans-expected-win.txt new file mode 100644 index 0000000..839b7a2 --- /dev/null +++ b/content/test/data/accessibility/table-spans-expected-win.txt @@ -0,0 +1 @@ +#<skip - we don't dump table attrs on win yet> diff --git a/content/test/data/accessibility/table-spans.html b/content/test/data/accessibility/table-spans.html new file mode 100644 index 0000000..608b321 --- /dev/null +++ b/content/test/data/accessibility/table-spans.html @@ -0,0 +1,24 @@ +<!doctype html> +<!-- +@MAC-ALLOW:AXIndex=* +@MAC-ALLOW:AXColumnIndexRange=* +@MAC-ALLOW:AXRowIndexRange=* +--> +<html> +<head> + <title>Table example with rowspan and colspan</title> +</head> +<body> + +<table border=1> + <tr> + <td rowspan="2">AD</td> + <td colspan="2">BC</td> + </tr> + <tr> + <td colspan="2">EF</td> + </tr> +</table> + +</body> +</html> |