diff options
Diffstat (limited to 'testing/web-platform/tests/accname/name/comp_labelledby.html')
-rw-r--r-- | testing/web-platform/tests/accname/name/comp_labelledby.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/web-platform/tests/accname/name/comp_labelledby.html b/testing/web-platform/tests/accname/name/comp_labelledby.html new file mode 100644 index 0000000000..8e66362d81 --- /dev/null +++ b/testing/web-platform/tests/accname/name/comp_labelledby.html @@ -0,0 +1,35 @@ +<!doctype html> +<html> +<head> + <title>Name Comp: Labelledby</title> + <script src="/resources/testharness.js"></script> + <script src="/resources/testharnessreport.js"></script> + <script src="/resources/testdriver.js"></script> + <script src="/resources/testdriver-vendor.js"></script> + <script src="/resources/testdriver-actions.js"></script> + <script src="/wai-aria/scripts/aria-utils.js"></script> +</head> +<body> + +<div role="group" aria-labelledby="h" class="ex" data-expectedlabel="div group label" data-testname="div group explicitly labelledby heading"> + <h2 id="h">div group label</h2> + <p>text inside div group</p> +</div> + +<!-- + +Todo: test all remaining cases of https://w3c.github.io/accname/#comp_labelledby + - comp_labelledby_reset + - comp_labelledby_foreach + - comp_labelledby_set_current + - comp_labelledby_recursion + - comp_labelledby_append + - comp_labelledby_return + +--> + +<script> +AriaUtils.verifyLabelsBySelector(".ex"); +</script> +</body> +</html>
\ No newline at end of file |