roles.tentative.html (1706B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>HTML-AAM Role Verification Tests</title> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 <script src="/resources/testdriver.js"></script> 8 <script src="/resources/testdriver-vendor.js"></script> 9 <script src="/resources/testdriver-actions.js"></script> 10 <script src="/wai-aria/scripts/aria-utils.js"></script> 11 </head> 12 <body> 13 14 15 <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> 16 17 <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> 18 19 <input type="checkbox" switch data-testname="el-input-checkbox-switch" data-expectedrole="switch" class="ex"> 20 21 <!-- 22 These thead, tbody, and tfoot role tests are pending spec discussion. 23 See https://github.com/w3c/html-aam/issues/474 24 --> 25 <table> 26 <thead data-testname="el-thead" data-expectedrole="rowgroup" class="ex"> 27 <tr> 28 <th>a</th> 29 <th>b</th> 30 <th>c</th> 31 </tr> 32 </thead> 33 <tbody data-testname="el-tbody" data-expectedrole="rowgroup" class="ex"> 34 <tr> 35 <th>1</th> 36 <td>2</td> 37 <td>3</td> 38 </tr> 39 <tr> 40 <th>4</th> 41 <td>5</td> 42 <td>6</td> 43 </tr> 44 </tbody> 45 <tfoot data-testname="el-tfoot" data-expectedrole="rowgroup" class="ex"> 46 <tr> 47 <th>x</th> 48 <th>y</th> 49 <th>z</th> 50 </tr> 51 </tfoot> 52 </table> 53 54 <script> 55 AriaUtils.verifyRolesBySelector(".ex"); 56 </script> 57 58 </body> 59 </html>