Skip to content

Commit a4881d4

Browse files
scottaoharalutien
authored andcommitted
Bug 1967670 [wpt PR 44934] - Create roles-minimum.tentative.html,
Automatic update from web-platform-tests Create roles-minimum.tentative.html (#44934) * Create roles-minimum.tentative.html * add tests for minimum role in html aam w3c/html-aam#454 * remove unused call * link to issue to clarify dead spec link -- wpt-commits: eba641bdc0a4b66b0bb162ebd775e46bab2b5ca4 wpt-pr: 44934 Differential Revision: https://phabricator.services.mozilla.com/D250952
1 parent 68c8166 commit a4881d4

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
>
2+
<html lang=en>
3+
<head>
4+
<title>HTML-AAM Minimum Role Verification Teststitle>
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+
<p>Tests minimum computedrole mappings defined in <a href="https://w3c.github.io/html-aam/#minimum-role">HTML-AAMa> ([HTML-AAM Issue #454](https://github.com/w3c/html-aam/pull/454)), where the returned computed role for generic elements is expected to change based on the generic elements having attributes that would require the element no longer be generic, and potentially ignored by browsers. Most test names correspond to a unique ID defined in the spec.<p>
15+
16+
17+
<div data-testname="el-div" data-expectedrole="generic" class="ex">Baseline div, role=genericdiv>
18+
19+
<div data-testname="el-div-autofocus-attr" data-expectedrole="group" autofocus class="ex">div with autofocus attribute.div>
20+
<div data-testname="el-div-autofocus-attr-role-generic" data-expectedrole="group" autofocus role="generic" class="ex">div with explicit role=generic and autofocus attribute.div>
21+
<div data-testname="el-div-autofocus-attr-role-none" data-expectedrole="group" autofocus role="none" class="ex">div with explicit role=none and autofocus attribute.div>
22+
23+
<div data-testname="el-div-draggable-attr" data-expectedrole="group" draggable class="ex">div with draggable attribute.div>
24+
<div data-testname="el-div-draggable-attr-role-generic" data-expectedrole="group" draggable role="generic" class="ex">div with explicit role=generic and draggable attribute.div>
25+
<div data-testname="el-div-draggable-attr-role-none" data-expectedrole="group" draggable role="none" class="ex">div with explicit role=none and draggable attribute.div>
26+
27+
<button popovertarget=pd>Show popover divbutton>
28+
<div data-testname="el-div-popover-attr" id=pd data-expectedrole="group" popover class="ex">div with popover attribute, role=groupdiv>
29+
30+
<div data-testname="el-div-draggable-attr-invalid-role" data-expectedrole="group" draggable role="foo" class="ex">div with draggable attribute and errant role attribute value.div>
31+
32+
33+
<section data-testname="el-section-draggable-attr" data-expectedrole="group" draggable class="ex">unnamed section with draggable attribute.section>
34+
35+
36+
39+
40+
<div data-testname="el-div-draggable-attr-role-article" data-expectedrole="article" role="article" draggable class="ex">div with explicit role=article and draggable attribute.div>
41+
42+
43+
<article data-testname="el-article-draggable-attr" data-expectedrole="article" draggable class="ex">article element with draggable attribute.article>
44+
<section data-testname="el-section-named-draggable-attr" data-expectedrole="region" aria-label="test" draggable class="ex">named section with draggable attribute.section>
45+
46+
47+
<cite data-testname="el-cite-draggable-attr" data-expectedrole="html-cite" draggable class="ex">cite element with draggable attribute.cite>
48+
49+
50+
<script>
51+
AriaUtils.verifyRolesBySelector(".ex");
52+
script>
53+
54+
body>
55+
html>

0 commit comments

Comments
 (0)