Skip to content

Commit 82d83b1

Browse files
authored
Core-AAM: New and updated tests (web-platform-tests#7456)
* Add tests for inclusion/exclusion from accessibility tree * Add some missing required attributes to a few existing tests
1 parent b47289f commit 82d83b1

File tree

35 files changed

+2047
-6
lines changed

35 files changed

+2047
-6
lines changed

core-aam/aria-atomic_false-manual.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
</head>
7575
<body>
7676
<p>This test examines the ARIA properties for aria-atomic=false.</p>
77-
<div role='group' id='test' aria-atomic='false'>
77+
<div role='group' id='test' aria-atomic='false' aria-live='polite'>
7878
<div role='group' id='child'>content</div>
7979
</div>
8080

core-aam/aria-atomic_true-manual.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
</head>
111111
<body>
112112
<p>This test examines the ARIA properties for aria-atomic=true.</p>
113-
<div role='group' id='test' aria-atomic='true'>
113+
<div role='group' id='test' aria-atomic='true' aria-live='polite'>
114114
<div role='group' id='child'>content</div>
115115
</div>
116116

core-aam/aria-errormessage-manual.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
</head>
8787
<body>
8888
<p>This test examines the ARIA properties for aria-errormessage.</p>
89-
<div role='group' id='test' aria-errormessage='error'>content</div>
89+
<div role='group' id='test' aria-errormessage='error' aria-invalid='true'>content</div>
9090
<div id='error'>hello world</div>
9191

9292
<div id="manualMode"></div>

core-aam/aria-level_on_non-heading-manual.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
<p>This test examines the ARIA properties for aria-level on non-heading.</p>
7171
<div role='tree'>
7272
<div role='treeitem' id='test' aria-level='5'>content</div>
73-
</div>then expose the element with id of 'test' with the platform mappings for aria-level on non-heading.
73+
</div>
7474

7575
<div id="manualMode"></div>
7676
<div id="log"></div>

core-aam/aria-relevant-manual.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
</head>
9999
<body>
100100
<p>This test examines the ARIA properties for aria-relevant.</p>
101-
<div role='group' id='test' aria-relevant='additions'>
101+
<div role='group' id='test' aria-relevant='additions' aria-live='polite'>
102102
<div role='group' id='child'>content</div>
103103
</div>
104104

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<title>Exclude element hidden with CSS display:none</title>
5+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
6+
<link rel="stylesheet" href="/resources/testharness.css">
7+
<link rel="stylesheet" href="/wai-aria/scripts/manual.css">
8+
<script src="/resources/testharness.js"></script>
9+
<script src="/resources/testharnessreport.js"></script>
10+
<script src="/wai-aria/scripts/ATTAcomm.js"></script>
11+
<script>
12+
setup({explicit_timeout: true, explicit_done: true });
13+
14+
var theTest = new ATTAcomm(
15+
{
16+
"steps" : [
17+
{
18+
"element" : "test",
19+
"test" : {
20+
"ATK" : [
21+
[
22+
"property",
23+
"accessible",
24+
"is",
25+
"false"
26+
]
27+
],
28+
"AXAPI" : [
29+
[
30+
"property",
31+
"accessible",
32+
"is",
33+
"false"
34+
]
35+
],
36+
"MSAA" : [
37+
[
38+
"property",
39+
"accessible",
40+
"is",
41+
"false"
42+
]
43+
],
44+
"UIA" : [
45+
[
46+
"property",
47+
"accessible",
48+
"is",
49+
"false"
50+
]
51+
]
52+
},
53+
"title" : "step 1",
54+
"type" : "test"
55+
}
56+
],
57+
"title" : "Exclude element hidden with CSS display:none"
58+
}
59+
60+
) ;
61+
</script>
62+
</head>
63+
<body>
64+
<p>This test examines the ARIA properties for Exclude element hidden with CSS display:none.</p>
65+
<div role='button' style='display:none;'>content</div>
66+
67+
<div id="manualMode"></div>
68+
<div id="log"></div>
69+
<div id="ATTAmessages"></div>
70+
</body>
71+
</html>
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<title>Exclude element hidden with CSS visibility:hidden</title>
5+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
6+
<link rel="stylesheet" href="/resources/testharness.css">
7+
<link rel="stylesheet" href="/wai-aria/scripts/manual.css">
8+
<script src="/resources/testharness.js"></script>
9+
<script src="/resources/testharnessreport.js"></script>
10+
<script src="/wai-aria/scripts/ATTAcomm.js"></script>
11+
<script>
12+
setup({explicit_timeout: true, explicit_done: true });
13+
14+
var theTest = new ATTAcomm(
15+
{
16+
"steps" : [
17+
{
18+
"element" : "test",
19+
"test" : {
20+
"ATK" : [
21+
[
22+
"property",
23+
"accessible",
24+
"is",
25+
"false"
26+
]
27+
],
28+
"AXAPI" : [
29+
[
30+
"property",
31+
"accessible",
32+
"is",
33+
"false"
34+
]
35+
],
36+
"MSAA" : [
37+
[
38+
"property",
39+
"accessible",
40+
"is",
41+
"false"
42+
]
43+
],
44+
"UIA" : [
45+
[
46+
"property",
47+
"accessible",
48+
"is",
49+
"false"
50+
]
51+
]
52+
},
53+
"title" : "step 1",
54+
"type" : "test"
55+
}
56+
],
57+
"title" : "Exclude element hidden with CSS visibility:hidden"
58+
}
59+
60+
) ;
61+
</script>
62+
</head>
63+
<body>
64+
<p>This test examines the ARIA properties for Exclude element hidden with CSS visibility:hidden.</p>
65+
<div role='button' style='visibility:hidden;'>content</div>
66+
67+
<div id="manualMode"></div>
68+
<div id="log"></div>
69+
<div id="ATTAmessages"></div>
70+
</body>
71+
</html>
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<title>Exclude element hidden with HTML5 hidden</title>
5+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
6+
<link rel="stylesheet" href="/resources/testharness.css">
7+
<link rel="stylesheet" href="/wai-aria/scripts/manual.css">
8+
<script src="/resources/testharness.js"></script>
9+
<script src="/resources/testharnessreport.js"></script>
10+
<script src="/wai-aria/scripts/ATTAcomm.js"></script>
11+
<script>
12+
setup({explicit_timeout: true, explicit_done: true });
13+
14+
var theTest = new ATTAcomm(
15+
{
16+
"steps" : [
17+
{
18+
"element" : "test",
19+
"test" : {
20+
"ATK" : [
21+
[
22+
"property",
23+
"accessible",
24+
"is",
25+
"false"
26+
]
27+
],
28+
"AXAPI" : [
29+
[
30+
"property",
31+
"accessible",
32+
"is",
33+
"false"
34+
]
35+
],
36+
"MSAA" : [
37+
[
38+
"property",
39+
"accessible",
40+
"is",
41+
"false"
42+
]
43+
],
44+
"UIA" : [
45+
[
46+
"property",
47+
"accessible",
48+
"is",
49+
"false"
50+
]
51+
]
52+
},
53+
"title" : "step 1",
54+
"type" : "test"
55+
}
56+
],
57+
"title" : "Exclude element hidden with HTML5 hidden"
58+
}
59+
60+
) ;
61+
</script>
62+
</head>
63+
<body>
64+
<p>This test examines the ARIA properties for Exclude element hidden with HTML5 hidden.</p>
65+
<div role='button' hidden>content</div>
66+
67+
<div id="manualMode"></div>
68+
<div id="log"></div>
69+
<div id="ATTAmessages"></div>
70+
</body>
71+
</html>
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<title>Exclude presentational children of button</title>
5+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
6+
<link rel="stylesheet" href="/resources/testharness.css">
7+
<link rel="stylesheet" href="/wai-aria/scripts/manual.css">
8+
<script src="/resources/testharness.js"></script>
9+
<script src="/resources/testharnessreport.js"></script>
10+
<script src="/wai-aria/scripts/ATTAcomm.js"></script>
11+
<script>
12+
setup({explicit_timeout: true, explicit_done: true });
13+
14+
var theTest = new ATTAcomm(
15+
{
16+
"steps" : [
17+
{
18+
"element" : "test",
19+
"test" : {
20+
"ATK" : [
21+
[
22+
"property",
23+
"accessible",
24+
"is",
25+
"false"
26+
]
27+
],
28+
"AXAPI" : [
29+
[
30+
"property",
31+
"accessible",
32+
"is",
33+
"false"
34+
]
35+
],
36+
"MSAA" : [
37+
[
38+
"property",
39+
"accessible",
40+
"is",
41+
"false"
42+
]
43+
],
44+
"UIA" : [
45+
[
46+
"property",
47+
"accessible",
48+
"is",
49+
"false"
50+
]
51+
]
52+
},
53+
"title" : "step 1",
54+
"type" : "test"
55+
}
56+
],
57+
"title" : "Exclude presentational children of button"
58+
}
59+
60+
) ;
61+
</script>
62+
</head>
63+
<body>
64+
<p>This test examines the ARIA properties for Exclude presentational children of button.</p>
65+
<div role='button'>
66+
<div id='test'>content</div>
67+
</div>
68+
69+
<div id="manualMode"></div>
70+
<div id="log"></div>
71+
<div id="ATTAmessages"></div>
72+
</body>
73+
</html>

0 commit comments

Comments
 (0)