Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(795)

Unified Diff: content/test/data/accessibility/aria/aria-sort-html-table.html

Issue 744843002: Added the aria-sort state to the accessibility tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Android test expectations. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/test/data/accessibility/aria/aria-sort-html-table.html
diff --git a/content/test/data/accessibility/aria/aria-sort-html-table.html b/content/test/data/accessibility/aria/aria-sort-html-table.html
new file mode 100644
index 0000000000000000000000000000000000000000..42022485f1de7f427c7e20002cb90aa17a70e180
--- /dev/null
+++ b/content/test/data/accessibility/aria/aria-sort-html-table.html
@@ -0,0 +1,148 @@
+<!--
+@MAC-ALLOW:AXSortDirection*
+@WIN-ALLOW:sort:*
+-->
+<html>
+<body>
+<!-- HTML table with a row header. -->
+
+<!-- No sorting (implicit). -->
+<table summary="Data table">
+ <tr>
+ <th>Alphabet</th>
+ </tr>
+ <tr>
+ <td>A</td>
+ </tr>
+ <tr>
+ <td>B</td>
+ </tr>
+</table>
+
+<!-- No sorting (explicit). -->
+<table summary="Data table">
+ <tr>
+ <th aria-sort="none">Alphabet</th>
+ </tr>
+ <tr>
+ <td>A</td>
+ </tr>
+ <tr>
+ <td>B</td>
+ </tr>
+</table>
+
+<!-- Ascending. -->
+<table summary="Data table">
+ <tr>
+ <th aria-sort="ascending">Alphabet</th>
+ </tr>
+ <tr>
+ <td>A</td>
+ </tr>
+ <tr>
+ <td>B</td>
+ </tr>
+</table>
+
+<!-- Descending. -->
+<table summary="Data table">
+ <tr>
+ <th aria-sort="descending">Alphabet</th>
+ </tr>
+ <tr>
+ <td>B</td>
+ </tr>
+ <tr>
+ <td>A</td>
+ </tr>
+</table>
+
+<!-- Unspecified. -->
+<table summary="Data table">
+ <tr>
+ <th aria-sort="other">Alphabet</th>
+ </tr>
+ <tr>
+ <td>A</td>
+ </tr>
+ <tr>
+ <td>A</td>
+ </tr>
+</table>
+
+
+<!-- HTML table with a column header. -->
+
+<!-- No sorting (implicit). -->
+<table summary="Data table">
+ <tr>
+ <th>Alphabet</th>
+ <td>A</td>
+ <td>B</td>
+ </tr>
+</table>
+
+<!-- No sorting (explicit). -->
+<table summary="Data table">
+ <tr>
+ <th aria-sort="none">Alphabet</th>
+ <td>A</td>
+ <td>B</td>
+ </tr>
+</table>
+
+<!-- Descending. -->
+<table summary="Data table">
+ <tr>
+ <th aria-sort="ascending">Alphabet</th>
+ <td>A</td>
+ <td>B</td>
+ </tr>
+</table>
+
+<!-- Descending. -->
+<table summary="Data table">
+ <tr>
+ <th aria-sort="descending">Alphabet</th>
+ <td>B</td>
+ <td>A</td>
+ </tr>
+</table>
+
+<!-- Unspecified. -->
+<table summary="Data table">
+ <tr>
+ <th aria-sort="other">Alphabet</th>
+ <td>A</td>
+ <td>A</td>
+ </tr>
+</table>
+
+
+<!-- Attribute on non-header cell: aria-sort should not be exposed. -->
+
+<table summary="Data table">
+ <tr>
+ <th>Alphabet</td>
+ </tr>
+ <tr>
+ <td aria-sort="ascending">A</td>
+ </tr>
+ <tr>
+ <td>B</td>
+ </tr>
+ </tr>
+</table>
+
+
+<!-- Non-data table: aria-sort should not be exposed. -->
+
+<table>
+ <tr>
+ <th aria-sort="ascending">Alphabet</th>
+ </tr>
+</table>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698