Skip to content

Commit

Permalink
CORE-AAM: add tests for roles mark, comment and suggestion
Browse files Browse the repository at this point in the history
See issue: w3c/core-aam#62
  • Loading branch information
spectranaut committed Jul 12, 2022
1 parent 7c447d0 commit 715c7c9
Show file tree
Hide file tree
Showing 3 changed files with 273 additions and 0 deletions.
88 changes: 88 additions & 0 deletions core-aam/comment-manual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<!doctype html>
<html>
<head>
<title>comment</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_COMMENT"
],
[
"property",
"objectAttributes",
"contains",
"xml-roles:comment"
]
],
"AXAPI" : [
[
"property",
"AXRole",
"is",
"AXGroup"
]
],
"IAccessible2" : [
[
"property",
"role",
"is",
"IA2_ROLE_COMMENT"
],
[
"property",
"objectAttributes",
"contains",
"xml-roles:comment"
]
],
"UIA" : [
[
"property",
"ControlType",
"is",
"Group"
],
[
"property",
"LocalizedControlType",
"is",
"comment"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "comment"
}

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

<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>
89 changes: 89 additions & 0 deletions core-aam/mark-manual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<!doctype html>
<html>
<head>
<title>mark</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_MARK"
],
[
"property",
"objectAttributes",
"contains",
"xml-roles:mark"
]
],
"AXAPI" : [
[
"property",
"AXRole",
"is",
"AXGroup"
]
],
"IAccessible2" : [
[
"property",
"role",
"is",
"IA2_ROLE_MARK"
],
[
"property",
"objectAttributes",
"contains",
"xml-roles:mark"
]
],
"MSAA" : [
[
"property",
"role",
"is",
"ROLE_SYSTEM_GROUPING"
]
],
"UIA" : [
[
"property",
"ControlType",
"is",
"Group"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "mark"
}

) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for mark.</p>
<div role="mark" id="test">content</div>
<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>
96 changes: 96 additions & 0 deletions core-aam/suggestion-manual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<!doctype html>
<html>
<head>
<title>suggestion</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_SUGGESTION"
],
[
"property",
"objectAttributes",
"contains",
"xml-roles:suggestion"
]
],
"AXAPI" : [
[
"property",
"AXRole",
"is",
"AXGroup"
]
],
"IAccessible2" : [
[
"property",
"role",
"is",
"IA2_ROLE_SUGGESTION"
],
[
"property",
"objectAttributes",
"contains",
"xml-roles:suggestion"
]
],
"MSAA" : [
[
"property",
"role",
"is",
"ROLE_SYSTEM_GROUPING"
]
],
"UIA" : [
[
"property",
"ControlType",
"is",
"Group"
],
[
"property",
"LocalizedControlType",
"is",
"suggestion"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "suggestion"
}

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

<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>

0 comments on commit 715c7c9

Please sign in to comment.