diff -r 000000000000 -r 6474c204b198 accessible/tests/mochitest/test_aria_token_attrs.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/accessible/tests/mochitest/test_aria_token_attrs.html Wed Dec 31 06:09:35 2014 +0100
@@ -0,0 +1,329 @@
+
+
+
+
+
+
+
+
+
+
+ This button has aria-pressed="true" and should get ROLE_TOGGLE_BUTTON. It should also get STATE_PRESSED.
+ This button has aria-pressed="false" and should get ROLE_TOGGLE_BUTTON.
+ This button has aria-pressed="" and should not get ROLE_BUTTON.
+ This button has aria-pressed="undefined" and should not get ROLE_TOGGLE_BUTTON.
+ This button has no aria-pressed attribute and should not get ROLE_TOGGLE_BUTTON.
+
+ This checkbox has aria-checked="true" and should get STATE_CHECKABLE. It should also get STATE_checked.
+ This checkbox has aria-checked="false" and should get STATE_CHECKABLE.
+ This checkbox has aria-checked="" and should not get STATE_CHECKABLE.
+ This checkbox has aria-checked="undefined" and should not get STATE_CHECKABLE.
+ This checkbox has no aria-checked attribute and should get STATE_CHECKABLE.
+
+
+
+ This checkbox has aria-readonly="true" and should get STATE_READONLY.
+ This checkbox has aria-readonly="false" and should not get STATE_READONLY.
+ This checkbox has aria-readonly="" and should not get STATE_READONLY.
+ This checkbox has aria-readonly="undefined" and should not get STATE_READONLY.
+ This checkbox has no aria-readonly attribute and should not get STATE_READONLY.
+
+ This checkbox has aria-required="true" and should get STATE_REQUIRED.
+ This checkbox has aria-required="false" and should not get STATE_REQUIRED.
+ This checkbox has aria-required="" and should not get STATE_REQUIRED.
+ This checkbox has aria-required="undefined" and should not get STATE_REQUIRED.
+ This checkbox has no aria-required attribute and should not get STATE_REQUIRED.
+
+ This checkbox has aria-invalid="true" and should get STATE_INVALID.
+ This checkbox has aria-invalid="false" and should not get STATE_INVALID.
+ This checkbox has aria-invalid="" and should not get STATE_INVALID.
+ This checkbox has aria-invalid="undefined" and should not get STATE_INVALID.
+ This checkbox has no aria-invalid attribute and should not get STATE_INVALID.
+
+ This checkbox has aria-disabled="true" and should get STATE_DISABLED.
+ This checkbox has aria-disabled="false" and should not get STATE_DISABLED.
+ This checkbox has aria-disabled="" and should not get STATE_DISABLED.
+ This checkbox has aria-disabled="undefined" and should not get STATE_DISABLED.
+ This checkbox has no aria-disabled attribute and should not get STATE_DISABLED.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ This menuitem has aria-checked="true" and should get STATE_CHECKABLE. It should also get STATE_CHECKED.
+ This menuitem has aria-checked="false" and should get STATE_CHECKABLE.
+ This menuitem has aria-checked="" and should not get STATE_CHECKABLE.
+ This menuitem has aria-checked="undefined" and should not get STATE_CHECKABLE.
+ This menuitem has no aria-checked attribute but should get STATE_CHECKABLE.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
This treeitem has aria-selected="true" and should get STATE_SELECTABLE. It should also get STATE_SELECTED.
+
This treeitem has aria-selected="false" and should get STATE_SELECTABLE.
+
This treeitem has aria-selected="" and should not get STATE_SELECTABLE.
+
This treeitem has aria-selected="undefined" and should not get STATE_SELECTABLE.
+
This treeitem has no aria-selected attribute and should not get STATE_SELECTABLE.
+
+
+
+
+
+
+
+
This treeitem has aria-expanded="true" and should get STATE_EXPANDABLE. It should also get STATE_EXPANDED.
+
This treeitem has aria-expanded="false" and should get STATE_EXPANDABLE. It should also get STATE_COLLAPSED.
+
This treeitem has aria-expanded="" and should not get STATE_EXPANDABLE.
+
This treeitem has aria-expanded="undefined" and should not get STATE_EXPANDABLE.
+
This treeitem has no aria-expanded attribute and should not get STATE_EXPANDABLE.
+
+
+
+