diff options
Diffstat (limited to 'accessible/tests/mochitest/test_custom_element_accessibility_defaults.html')
-rw-r--r-- | accessible/tests/mochitest/test_custom_element_accessibility_defaults.html | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/accessible/tests/mochitest/test_custom_element_accessibility_defaults.html b/accessible/tests/mochitest/test_custom_element_accessibility_defaults.html index 672b5c36ad..799aefc163 100644 --- a/accessible/tests/mochitest/test_custom_element_accessibility_defaults.html +++ b/accessible/tests/mochitest/test_custom_element_accessibility_defaults.html @@ -33,7 +33,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1665151 ["disabled", "button", internals => internals.ariaDisabled = "true"], ["expanded", "button", internals => internals.ariaExpanded = "true"], ["haspopup", "button", internals => internals.ariaHasPopup = "true"], - ["hidden", "region", internals => internals.ariaHidden = "false"], + ["hidden", "region", internals => internals.ariaHidden = "true"], ["invalid", "textbox", internals => internals.ariaInvalid = "true"], ["keyshortcuts", "button", internals => internals.ariaKeyShortcuts = "Alt+Shift+A"], ["label", "button", internals => internals.ariaLabel = "Default"], @@ -122,8 +122,8 @@ async function runTest() { testAttrs("default-haspopup", {"haspopup": "true"}, true); testAbsentAttrs("custom-haspopup", {"haspopup": "false"}); - ok(isAccessible("default-hidden"), "Accessible for not aria-hidden"); - ok(!isAccessible("custom-hidden"), "No accessible for aria-hidden"); + ok(!isAccessible("default-hidden"), "Accessible for aria-hidden default"); + ok(isAccessible("custom-hidden"), "Accessible for custom aria-hidden=false"); testStates("default-invalid", STATE_INVALID); testStates("custom-invalid", 0, 0, STATE_INVALID); @@ -277,7 +277,7 @@ addA11yLoadEvent(runTest); <custom-haspopup id="custom-haspopup" aria-haspopup="false"></custom-haspopup> <custom-hidden id="default-hidden"></custom-hidden> -<custom-hidden id="custom-hidden" aria-hidden="true"></custom-hidden> +<custom-hidden id="custom-hidden" aria-hidden="false"></custom-hidden> <custom-invalid id="default-invalid"></custom-invalid> <custom-invalid id="custom-invalid" aria-invalid="false"></custom-invalid> @@ -306,8 +306,10 @@ addA11yLoadEvent(runTest); <custom-orientation id="default-orientation"></custom-orientation> <custom-orientation id="custom-orientation" aria-orientation="horizontal"></custom-orientation> -<custom-posinset id="default-posinset"></custom-posinset> -<custom-posinset id="custom-posinset" aria-posinset="2"></custom-posinset> +<div role="listbox"> + <custom-posinset id="default-posinset"></custom-posinset> + <custom-posinset id="custom-posinset" aria-posinset="2"></custom-posinset> +</div> <custom-pressed id="default-pressed"></custom-pressed> <custom-pressed id="custom-pressed" aria-pressed="false"></custom-pressed> @@ -345,10 +347,10 @@ addA11yLoadEvent(runTest); <custom-selected id="default-selected"></custom-selected> <custom-selected id="custom-selected" aria-selected="false"></custom-selected> -<div role="listbox"> +<div role="list"> <custom-setsize id="default-setsize"></custom-setsize> </div> -<div role="listbox"> +<div role="list"> <custom-setsize id="custom-setsize" aria-setsize="2"></custom-setsize> <div role="listitem" aria-setsize="2"></div> </div> |