From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- .../tests/mochitest/test_aria_token_attrs.html | 417 +++++++++++++++++++++ 1 file changed, 417 insertions(+) create mode 100644 accessible/tests/mochitest/test_aria_token_attrs.html (limited to 'accessible/tests/mochitest/test_aria_token_attrs.html') diff --git a/accessible/tests/mochitest/test_aria_token_attrs.html b/accessible/tests/mochitest/test_aria_token_attrs.html new file mode 100644 index 0000000000..ad0bc25970 --- /dev/null +++ b/accessible/tests/mochitest/test_aria_token_attrs.html @@ -0,0 +1,417 @@ + + + + + An NMTOKEN based ARIA property is undefined if the ARIA attribute is not present, or is set to "" or "undefined" + + + + + + + + + + + + + + Mozilla Bug 452388 + + + Mozilla Bug 499653 + + +

+ +
+  
+ +
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.
+ + + + + + + + +
+ + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+
item
+
+
+
item
+
+
+
item
+
+
+
item
+
+
+
item
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +
+
yes
+
no
+
+
+
yes
+
no
+
+
+
yes
+
no
+
+
+
yes
+
no
+
+
+
yes
+
no
+
+ +
This switch has aria-readonly="true" and should get STATE_READONLY.
+
This switch has aria-readonly="false" and should not get STATE_READONLY.
+
This switch has aria-readonly="" and should not get STATE_READONLY.
+
This switch has aria-readonly="undefined" and should not get STATE_READONLY.
+
This switch has no aria-readonly attribute and should not get STATE_READONLY.
+ +
+
+
+
+
+ +
+
+
+
+
+ +
+ + + + + + + + + + + +
+ +
+
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-haspopup="true" and should get STATE_HASPOPUP.
+
This treeitem has aria-haspopup="false" and should get STATE_HASPOPUP.
+
This treeitem has aria-haspopup="" and should not get STATE_HASPOPUP.
+
This treeitem has aria-haspopup="undefined" and should not get STATE_HASPOPUP.
+
This treeitem has no aria-haspopup attribute and should not get STATE_HASPOPUP.
+ +
This treeitem has aria-expanded="true" and should get STATE_EXPANDABLE. It should also get STATE_EXPANDED.
+ +
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.
+
+ + + -- cgit v1.2.3