Skip to content

Commit

Permalink
ARIA: add tests for sectionheader and sectionfooter
Browse files Browse the repository at this point in the history
  • Loading branch information
spectranaut committed Apr 29, 2024
1 parent 8c6b479 commit cdb8c30
Show file tree
Hide file tree
Showing 3 changed files with 207 additions and 1 deletion.
102 changes: 102 additions & 0 deletions core-aam/sectionfooter-manual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<!doctype html>
<html>
<head>
<title>sectionfooter</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link rel="stylesheet" href="/wai-aria/scripts/manual.css">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/wai-aria/scripts/ATTAcomm.js"></script>
<script>
setup({explicit_timeout: true, explicit_done: true });

var theTest = new ATTAcomm(
{
"steps" : [
{
"element" : "test",
"test" : {
"ATK" : [
[
"property",
"role",
"is",
"ROLE_PANEL"
],
[
"property",
"objectAttributes",
"contains",
"xml-roles:sectionfooter"
]
],
"AXAPI" : [
[
"property",
"AXRole",
"is",
"AXGroup"
],
[
"property",
"AXSubrole",
"is",
"<nil>"
],
[
"property",
"AXRoleDescription",
"is",
"sectionfooter"
]
],
"IAccessible2" : [
[
"property",
"objectAttributes",
"contains",
"xml-roles:sectionfooter"
]
],
"MSAA" : [
[
"property",
"role",
"is",
"ROLE_SYSTEM_GROUPING"
]
],
"UIA" : [
[
"property",
"ControlType",
"is",
"Group"
],
[
"property",
"LocalizedControlType",
"is",
"sectionfooter"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "sectionfooter"
}

) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for sectionfooter.</p>
<div role='sectionfooter' id='test'>content</div>

<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>
102 changes: 102 additions & 0 deletions core-aam/sectionheader-manual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<!doctype html>
<html>
<head>
<title>sectionheader</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link rel="stylesheet" href="/wai-aria/scripts/manual.css">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/wai-aria/scripts/ATTAcomm.js"></script>
<script>
setup({explicit_timeout: true, explicit_done: true });

var theTest = new ATTAcomm(
{
"steps" : [
{
"element" : "test",
"test" : {
"ATK" : [
[
"property",
"role",
"is",
"ROLE_PANEL"
],
[
"property",
"objectAttributes",
"contains",
"xml-roles:sectionheader"
]
],
"AXAPI" : [
[
"property",
"AXRole",
"is",
"AXGroup"
],
[
"property",
"AXSubrole",
"is",
"<nil>"
],
[
"property",
"AXRoleDescription",
"is",
"sectionheader"
]
],
"IAccessible2" : [
[
"property",
"objectAttributes",
"contains",
"xml-roles:sectionheader"
]
],
"MSAA" : [
[
"property",
"role",
"is",
"ROLE_SYSTEM_GROUPING"
]
],
"UIA" : [
[
"property",
"ControlType",
"is",
"Group"
],
[
"property",
"LocalizedControlType",
"is",
"sectionheader"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "sectionheader"
}

) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for sectionheader.</p>
<div role='sectionheader' id='test'>content</div>

<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>
4 changes: 3 additions & 1 deletion wai-aria/role/roles.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@
// "rowgroup" -> ./grid-roles.html
// "rowheader" -> ./grid-roles.html
"scrollbar",
"sectionheader",
"sectionfooter",
"search",
"searchbox",
// "section" -> ./abstract-roles.html
Expand Down Expand Up @@ -137,4 +139,4 @@

</script>
</body>
</html>
</html>

0 comments on commit cdb8c30

Please sign in to comment.