- commit
- 20c92440d2841208449904cc7407465873700fd3
- parent
- 1d3691a9aab4618c22d305f0242fb60d8c857304
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2024-06-21 16:10
wpt: do not include tentative tests
Diffstat
| M | test/wpt.js | 19 | ------------------- |
| M | wpt.py | 2 | ++ |
2 files changed, 2 insertions, 19 deletions
diff --git a/test/wpt.js b/test/wpt.js
@@ -1138,12 +1138,6 @@ window.wpt["accname"] = [ 1138 1138 "selector": ".ex" 1139 1139 }, 1140 1140 {1141 -1 "filename": "comp_name_from_content.tentative.html",1142 -1 "title": "Name Comp: Name From Content (Tentative)",1143 -1 "html": "<!--\n These aria-labelledby tests may not be valid, pending spec discussion.\n See https://github.com/w3c/accname/issues/209\n-->\n\n<!-- cross-referencial edge case-->\n<h1>heading with link referencing image using aria-labelledby, that in turn references text element via aria-labelledby</h1>\n<h3 data-expectedlabel=\"image link\" data-testname=\"heading with link referencing image using aria-labelledby, that in turn references text element via aria-labelledby\" class=\"ex\">\n <a href=\"#\" aria-labelledby=\"nested_image_label3\">\n <span class=\"note\" id=\"crossref_link\">link</span><!-- this text is skipped the first time around because of aria-labelledby on parent element -->\n </a>\n <!-- but it's picked up again in inverse order b/c of cross-referencial aria-labelledby edge case -->\n <img id=\"nested_image_label3\" alt=\"image\" aria-labelledby=\"crossref_link\" src=\"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==\">\n</h3>\n\n<!-- self-referencial edge case-->\n<h1>heading with link referencing image using aria-labelledby, that in turn references itself and another element via aria-labelledby</h1>\n<h3 data-expectedlabel=\"image link\" data-testname=\"heading with link referencing image using aria-labelledby, that in turn references itself and another element via aria-labelledby\" class=\"ex\">\n <a href=\"#\" aria-labelledby=\"nested_image_label4\">\n <span class=\"note\" id=\"crossref_link2\">link</span><!-- this text is skipped the first time around because of aria-labelledby on parent element -->\n </a>\n <!-- but it's picked up again (after the self-referencial image alt) in inverse order b/c of cross-referencial aria-labelledby edge case -->\n <img id=\"nested_image_label4\" alt=\"image\" aria-labelledby=\"nested_image_label4 crossref_link2\" src=\"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==\">\n</h3>",1144 -1 "selector": ".ex"1145 -1 },1146 -1 {1147 1141 "filename": "comp_labelledby_hidden_nodes.html", 1148 1142 "title": "Name Comp: Labelledby & Hidden Nodes", 1149 1143 "html": "<p>Tests hidden node name computation as part of the <a href=\"https://w3c.github.io/accname/#comp_labelledby\">#comp_labelledby</a> portion of the AccName <em>Name Computation</em> algorithm.</p>\n\n<!--\n\n These tests verify browser conformance with the following note as part of accName computation Step 2B:\n\n \"The result of LabelledBy Recursion in combination with Hidden Not Referenced means\n that user agents MUST include all nodes in the subtree as part of\n the accessible name or accessible description, when the node referenced\n by aria-labelledby or aria-describedby is hidden.\"\n\n-->\n\n<h2>Testing with <code>display:none</code></h2>\n\n <button aria-labelledby=\"a11\" data-expectedlabel=\"foo bar\" data-testname=\"button with aria-labelledby using display:none hidden span (with nested span)\" class=\"ex\">x</button>\n <span id=\"a11\" style=\"display: none;\">\n foo\n <span id=\"a12\">bar</span>\n </span>\n\n <button aria-labelledby=\"a21\" data-expectedlabel=\"foo bar baz\" data-testname=\"button with aria-labelledby using display:none hidden span (with nested spans, depth 2)\" class=\"ex\">x</button>\n <span id=\"a21\" style=\"display: none;\">\n foo\n <span id=\"a22\">\n bar\n <span id=\"a23\">baz</span>\n </span>\n </span>\n\n <button aria-labelledby=\"a31\" data-expectedlabel=\"foo\" data-testname=\"button with aria-labelledby using span without display:none (with nested display:none spans, depth 2)\" class=\"ex\">x</button>\n <span id=\"a31\">\n foo\n <span id=\"a32\" style=\"display: none;\">\n bar\n <span id=\"a33\">baz</span>\n </span>\n </span>\n\n <button aria-labelledby=\"a41\" data-expectedlabel=\"foo bar baz\" data-testname=\"button with aria-labelledby using display:none hidden span (with nested sibling spans)\" class=\"ex\">x</button>\n <span id=\"a41\" style=\"display: none;\">\n foo\n <span id=\"a42\">bar</span>\n <span id=\"a43\">baz</span>\n </span>\n\n <button aria-labelledby=\"a51\" data-expectedlabel=\"foo\" data-testname=\"button with aria-labelledby using span without display:none (with nested display:none sibling spans)\" class=\"ex\">x</button>\n <span id=\"a51\">\n foo\n <span id=\"a52\" style=\"display: none;\">bar</span>\n <span id=\"a53\" style=\"display: none;\">baz</span>\n </span>\n\n <button aria-labelledby=\"a61\" data-expectedlabel=\"foo bar baz\" data-testname=\"button with aria-labelledby using span with display:none (with nested display:inline sibling spans)\" class=\"ex\">x</button>\n <span id=\"a61\" style=\"display: none;\">\n foo\n <span id=\"a62\" style=\"display: inline;\">bar</span>\n <span id=\"a63\" style=\"display: inline;\">baz</span>\n </span>\n\n<h2>Testing with <code>visibility:hidden</code></h2>\n\n <button aria-labelledby=\"b11\" data-expectedlabel=\"foo bar\" data-testname=\"button with aria-labelledby using visibility:hidden span (with nested span)\" class=\"ex\">x</button>\n <span id=\"b11\" style=\"visibility: hidden;\">\n foo\n <span id=\"b12\">bar</span>\n </span>\n\n <button aria-labelledby=\"b21\" data-expectedlabel=\"foo bar baz\" data-testname=\"button with aria-labelledby using visibility:hidden span (with nested spans, depth 2)\" class=\"ex\">x</button>\n <span id=\"b21\" style=\"visibility: hidden;\">\n foo\n <span id=\"b22\">\n bar\n <span id=\"b23\">baz</span>\n </span>\n </span>\n\n <button aria-labelledby=\"b31\" data-expectedlabel=\"foo\" data-testname=\"button with aria-labelledby using span without visibility:hidden (with nested visibility:hidden spans, depth 2)\" class=\"ex\">x</button>\n <span id=\"b31\">\n foo\n <span id=\"b32\" style=\"visibility: hidden;\">\n bar\n <span id=\"b33\">baz</span>\n </span>\n </span>\n\n <button aria-labelledby=\"b41\" data-expectedlabel=\"foo bar baz\" data-testname=\"button with aria-labelledby using visibility:hidden hidden span (with nested sibling spans)\" class=\"ex\">x</button>\n <span id=\"b41\" style=\"visibility: hidden;\">\n foo\n <span id=\"b42\">bar</span>\n <span id=\"b43\">baz</span>\n </span>\n\n <button aria-labelledby=\"b51\" data-expectedlabel=\"foo\" data-testname=\"button with aria-labelledby using span without visibility:hidden (with nested visibility:hidden sibling spans)\" class=\"ex\">x</button>\n <span id=\"b51\">\n foo\n <span id=\"b52\" style=\"visibility: hidden;\">bar</span>\n <span id=\"b53\" style=\"visibility: hidden;\">baz</span>\n </span>\n\n <button aria-labelledby=\"b61\" data-expectedlabel=\"foo bar baz\" data-testname=\"button with aria-labelledby using span with visibility:hidden (with nested visibility:visible sibling spans)\" class=\"ex\">x</button>\n <span id=\"b61\" style=\"visibility: hidden;\">\n foo\n <span id=\"b62\" style=\"visibility: visible;\">bar</span>\n <span id=\"b63\" style=\"visibility: visible;\">baz</span>\n </span>\n\n<h2>Testing with <code>visibility:collapse</code></h2>\n\n <button aria-labelledby=\"c11\" data-expectedlabel=\"foo bar\" data-testname=\"button with aria-labelledby using visibility:collapse span (with nested span)\" class=\"ex\">x</button>\n <span id=\"c11\" style=\"visibility: collapse;\">\n foo\n <span id=\"c12\">bar</span>\n </span>\n\n <button aria-labelledby=\"c21\" data-expectedlabel=\"foo bar baz\" data-testname=\"button with aria-labelledby using visibility:collapse span (with nested spans, depth 2)\" class=\"ex\">x</button>\n <span id=\"c21\" style=\"visibility: collapse;\">\n foo\n <span id=\"c22\">\n bar\n <span id=\"c23\">baz</span>\n </span>\n </span>\n\n <button aria-labelledby=\"c31\" data-expectedlabel=\"foo bar baz\" data-testname=\"button with aria-labelledby using span without visibility:collapse (with nested visibility:visible spans, depth 2)\" class=\"ex\">x</button>\n <span id=\"c31\">\n foo\n <span id=\"c32\" style=\"visibility: visible;\">\n bar\n <span id=\"c33\" style=\"visibility: visible;\">baz</span>\n </span>\n </span>\n\n <button aria-labelledby=\"c41\" data-expectedlabel=\"foo bar baz\" data-testname=\"button with aria-labelledby using visibility:collapse span (with nested sibling spans)\" class=\"ex\">x</button>\n <span id=\"c41\" style=\"visibility: collapse;\">\n foo\n <span id=\"c42\">bar</span>\n <span id=\"c43\">baz</span>\n </span>\n\n <button aria-labelledby=\"c51\" data-expectedlabel=\"foo\" data-testname=\"button with aria-labelledby using span without visibility:collapse (with nested visibility:collapse sibling spans)\" class=\"ex\">x</button>\n <span id=\"c51\">\n foo\n <span id=\"c52\" style=\"visibility: collapse;\">bar</span>\n <span id=\"c53\" style=\"visibility: collapse;\">baz</span>\n </span>\n\n <button aria-labelledby=\"c61\" data-expectedlabel=\"foo bar baz\" data-testname=\"button with aria-labelledby using span with visibility:collapse (with nested visible sibling spans)\" class=\"ex\">x</button>\n <span id=\"c61\" style=\"visibility: collapse;\">\n foo\n <span id=\"c62\" style=\"visibility: visible;\">bar</span>\n <span id=\"c63\" style=\"visibility: visible;\">baz</span>\n </span>\n\n<h2>Testing with <code>aria-hidden</code></h2>\n\n <button aria-labelledby=\"d11\" data-expectedlabel=\"foo bar\" data-testname=\"button with aria-labelledby using aria-hidden span (with nested span)\" class=\"ex\">x</button>\n <span id=\"d11\" aria-hidden=\"true\">\n foo\n <span id=\"d12\">bar</span>\n </span>\n\n <button aria-labelledby=\"d21\" data-expectedlabel=\"foo bar baz\" data-testname=\"button with aria-labelledby using aria-hidden span (with nested spans, depth 2)\" class=\"ex\">x</button>\n <span id=\"d21\" aria-hidden=\"true\">\n foo\n <span id=\"d22\">\n bar\n <span id=\"d23\">baz</span>\n </span>\n </span>\n\n <button aria-labelledby=\"d31\" data-expectedlabel=\"foo\" data-testname=\"button with aria-labelledby using span without aria-hidden (with nested aria-hidden spans, depth 2)\" class=\"ex\">x</button>\n <span id=\"d31\">\n foo\n <span id=\"d32\" aria-hidden=\"true\">\n bar\n <span id=\"d33\">baz</span>\n </span>\n </span>\n\n <button aria-labelledby=\"d41\" data-expectedlabel=\"foo bar baz\" data-testname=\"button with aria-labelledby using aria-hidden hidden span (with nested sibling spans)\" class=\"ex\">x</button>\n <span id=\"d41\" aria-hidden=\"true\">\n foo\n <span id=\"d42\">bar</span>\n <span id=\"d43\">baz</span>\n </span>\n\n<h2>Testing with <code>hidden</code> attribute</h2>\n\n <button aria-labelledby=\"e11\" data-expectedlabel=\"foo bar\" data-testname=\"button with aria-labelledby using HTML5 hidden span (with nested span)\" class=\"ex\">x</button>\n <span id=\"e11\" hidden>\n foo\n <span id=\"e12\">bar</span>\n </span>\n\n <button aria-labelledby=\"e21\" data-expectedlabel=\"foo bar baz\" data-testname=\"button with aria-labelledby using HTML5 hidden span (with nested spans, depth 2)\" class=\"ex\">x</button>\n <span id=\"e21\" hidden>\n foo\n <span id=\"e22\">\n bar\n <span id=\"e23\">baz</span>\n </span>\n </span>\n\n <button aria-labelledby=\"e31\" data-expectedlabel=\"foo\" data-testname=\"button with aria-labelledby using span without HTML5 hidden (with nested HTML5 hidden spans, depth 2)\" class=\"ex\">x</button>\n <span id=\"e31\">\n foo\n <span id=\"e32\" hidden>\n bar\n <span id=\"e33\">baz</span>\n </span>\n </span>\n\n <button aria-labelledby=\"e41\" data-expectedlabel=\"foo bar baz\" data-testname=\"button with aria-labelledby using HTML5 hidden span (with nested hidden sibling spans)\" class=\"ex\">x</button>\n <span id=\"e41\" hidden>\n foo\n <span id=\"e42\">bar</span>\n <span id=\"e43\">baz</span>\n </span>\n\n <button aria-labelledby=\"e51\" data-expectedlabel=\"foo\" data-testname=\"button with aria-labelledby using span without HTML5 hidden (with nested hidden sibling spans)\" class=\"ex\">x</button>\n <span id=\"e51\">\n foo\n <span id=\"e52\" hidden>bar</span>\n <span id=\"e53\" hidden>baz</span>\n </span>", @@ -1423,12 +1417,6 @@ window.wpt["html-aam"] = [ 1423 1417 "selector": ".ex-generic" 1424 1418 }, 1425 1419 {1426 -1 "filename": "roles.tentative.html",1427 -1 "title": "HTML-AAM Role Verification Tests",1428 -1 "html": "<p>Tests the computedrole mappings defined in <a href=\"https://w3c.github.io/html-aam/\">HTML-AAM</a>. Most test names correspond to a unique ID defined in the spec.<p>\n\n<p>These should remain in alphabetical order, and include all HTML tagnames. If a tag is not tested here, include a pointer to the file where it is tested, such as: <code><!-- caption -> ./table-roles.html --></code></p>\n\n<input type=\"checkbox\" switch data-testname=\"el-input-checkbox-switch\" data-expectedrole=\"switch\" class=\"ex\">\n\n<!--\n These thead, tbody, and tfoot role tests are pending spec discussion.\n See https://github.com/w3c/html-aam/issues/474\n-->\n<table>\n <thead data-testname=\"el-thead\" data-expectedrole=\"rowgroup\" class=\"ex\">\n <tr>\n <th>a</th>\n <th>b</th>\n <th>c</th>\n </tr>\n </thead>\n <tbody data-testname=\"el-tbody\" data-expectedrole=\"rowgroup\" class=\"ex\">\n <tr>\n <th>1</th>\n <td>2</td>\n <td>3</td>\n </tr>\n <tr>\n <th>4</th>\n <td>5</td>\n <td>6</td>\n </tr>\n </tbody>\n <tfoot data-testname=\"el-tfoot\" data-expectedrole=\"rowgroup\" class=\"ex\">\n <tr>\n <th>x</th>\n <th>y</th>\n <th>z</th>\n </tr>\n </tfoot>\n</table>",1429 -1 "selector": ".ex"1430 -1 },1431 -1 {1432 1420 "filename": "area-role.html", 1433 1421 "title": "HTMLAreaElement Role Verification Tests", 1434 1422 "html": "<map name=\"areamap\">\n <area shape=\"rect\" coords=\"0,0,15,15\" href=\"#\" alt=\"x\" data-testname=\"el-area\" data-expectedrole=\"link\" class=\"ex\">\n <area shape=\"rect\" coords=\"15,15,31,31\" alt=\"x\" data-testname=\"el-area-no-href\" class=\"ex-generic\">\n</map>\n<img usemap=\"#areamap\" style=\"width: 32px; height: 32px;\" alt=\"x\" src=\"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==\">", @@ -1467,12 +1455,5 @@ window.wpt["svg-aam"] = [ 1467 1455 "html": "<p>Tests ONLY the default <code>generic</code> mappings defined in <a href=\"https://w3c.github.io/svg-aam/#include_elements\">SVG-AAM: 5.1.2 Including Elements in the Accessibility Tree</a>.</p>\n\n<h2>Simple Elements</h2>\n<!-- Note: adding an inoccuous label, tabindex, or some other accessible marker may cause the computedrole result to change. -->\n<svg>\n <!-- Some elements skipped: never-rendered elements can return unpredicable/undefined/unspecified values for computedrole. -->\n <circle data-testname=\"el-circle\" class=\"ex-generic\"></circle>\n <ellipse data-testname=\"el-ellipse\" class=\"ex-generic\"></ellipse>\n <foreignObject data-testname=\"el-foreignObject\" class=\"ex-generic\"></foreignObject>\n <g data-testname=\"el-g\" class=\"ex-generic\"></g>\n <!-- image -> in ./role-img.tentative.html -->\n <line data-testname=\"el-line\" class=\"ex-generic\"></line>\n <!-- skipped: mesh -->\n <path data-testname=\"el-path\" class=\"ex-generic\"></path>\n <polygon data-testname=\"el-polygon\" class=\"ex-generic\"></polygon>\n <polyline data-testname=\"el-polyline\" class=\"ex-generic\"></polyline>\n <rect data-testname=\"el-rect\" class=\"ex-generic\"></rect>\n <!-- blocked: textPath -> https://w3c.github.io/svg-aam/#textpath-tspan-mappings-issue-->\n <!-- blocked: tspan -> https://w3c.github.io/svg-aam/#textpath-tspan-mappings-issue -->\n <!-- skipped: use -->\n</svg>", 1468 1456 "role": "generic", 1469 1457 "selector": ".ex-generic"1470 -1 },1471 -1 {1472 -1 "filename": "role-img.tentative.html",1473 -1 "title": "SVG-AAM Image Role Verification Tests",1474 -1 "html": "<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>\n\n<!-- [sic] included here b/c the spec says unlabeled, unrendered images are generic, but the spec may be wrong. -->\n<!-- Once https://github.com/w3c/svg-aam/issues/32 is resolved, this test can be moved to another file or have `.tentative` removed. -->\n<image data-testname=\"el-image (empty label due to missing image>title element)\" data-expectedrole=\"image\" data-expectedlabel=\"\" class=\"ex-role-label\"></image>\n\n<!-- Additional tests -->\n<image data-testname=\"el-image (label from w/ aria-label)\" aria-label=\"x\" data-expectedrole=\"image\" data-expectedlabel=\"x\" class=\"ex-role-label\"></image>\n<image data-testname=\"el-image (label from image>title element)\" data-expectedrole=\"image\" data-expectedlabel=\"x\" class=\"ex-role-label\"><title>x</title></image>\n<image data-testname=\"el-image (generic, explicitly empty image>title element)\" class=\"ex-generic\"><title></title></image>",1475 -1 "role": "generic",1476 -1 "selector": ".ex-generic"1477 1458 } 1478 1459 ];
diff --git a/wpt.py b/wpt.py
@@ -25,6 +25,8 @@ def extract_tests(path): 25 25 for filename in files: 26 26 if not filename.endswith('.html'): 27 27 continue -1 28 if filename.endswith('.tentative.html'): -1 29 continue 28 30 29 31 with open(os.path.join(root, filename)) as fh: 30 32 raw = fh.read()