diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
commit | fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch) | |
tree | 4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /testing/web-platform/tests/svg-aam/role | |
parent | Releasing progress-linux version 124.0.1-1~progress7.99u1. (diff) | |
download | firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/svg-aam/role')
-rw-r--r-- | testing/web-platform/tests/svg-aam/role/role-img.tentative.html | 32 | ||||
-rw-r--r-- | testing/web-platform/tests/svg-aam/role/roles-generic.html | 6 |
2 files changed, 33 insertions, 5 deletions
diff --git a/testing/web-platform/tests/svg-aam/role/role-img.tentative.html b/testing/web-platform/tests/svg-aam/role/role-img.tentative.html new file mode 100644 index 0000000000..57fd17cddf --- /dev/null +++ b/testing/web-platform/tests/svg-aam/role/role-img.tentative.html @@ -0,0 +1,32 @@ +<!doctype html> +<html> +<head> + <title>SVG-AAM Image Role Verification Tests</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> + + +<p>Currently tentative due to <a href="https://github.com/w3c/svg-aam/issues/32">SVG-AAM #32: SVG image role should align with HTML on missing versus empty alt</a>.</p> + +<!-- [sic] included here b/c the spec says unlabeled, unrendered images are generic, but the spec may be wrong. --> +<!-- Once https://github.com/w3c/svg-aam/issues/32 is resolved, this test can be moved to another file or have `.tentative` removed. --> +<image data-testname="el-image (empty label due to missing image>title element)" data-expectedrole="image" data-expectedlabel="" class="ex-role-label"></image> + +<!-- Additional tests --> +<image data-testname="el-image (label from w/ aria-label)" aria-label="x" data-expectedrole="image" data-expectedlabel="x" class="ex-role-label"></image> +<image data-testname="el-image (label from image>title element)" data-expectedrole="image" data-expectedlabel="x" class="ex-role-label"><title>x</title></image> +<image data-testname="el-image (generic, explicitly empty image>title element)" class="ex-generic"><title></title></image> + +<script> +AriaUtils.verifyRolesAndLabelsBySelector(".ex-role-label"); +AriaUtils.verifyGenericRolesBySelector(".ex-generic"); +</script> + +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/svg-aam/role/roles-generic.html b/testing/web-platform/tests/svg-aam/role/roles-generic.html index e7fe9f33de..d8ad4f9ea1 100644 --- a/testing/web-platform/tests/svg-aam/role/roles-generic.html +++ b/testing/web-platform/tests/svg-aam/role/roles-generic.html @@ -22,11 +22,7 @@ <ellipse data-testname="el-ellipse" class="ex-generic"></ellipse> <foreignObject data-testname="el-foreignObject" class="ex-generic"></foreignObject> <g data-testname="el-g" class="ex-generic"></g> - - <!-- [sic] included here b/c the spec says unlabeled, unrendered images are generic, but the spec is wrong. --> - <!-- Once https://github.com/w3c/svg-aam/issues/32 is resolved, this test can be moved to another file. --> - <image data-testname="el-image" data-expectedrole="image" class="ex"></image> - + <!-- image -> in ./role-img.tentative.html --> <line data-testname="el-line" class="ex-generic"></line> <!-- skipped: mesh --> <path data-testname="el-path" class="ex-generic"></path> |