Skip to content

Commit

Permalink
Update CORE-AAM tests (web-platform-tests#34758)
Browse files Browse the repository at this point in the history
* CORE-AAM: AXAPI subrole for role=tab

See issue: w3c/core-aam#106

* CORE-AAM: unnamed forms are not landmarks

See issue: w3c/core-aam#11

* CORE-AAM: add tests for role comment

See issue: w3c/core-aam#62
  • Loading branch information
spectranaut authored and Lightning00Blade committed Dec 11, 2023
1 parent 4dedbe8 commit ba31615
Show file tree
Hide file tree
Showing 4 changed files with 173 additions and 2 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>
2 changes: 1 addition & 1 deletion core-aam/form-manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
</head>
<body>
<p>This test examines the ARIA properties for form.</p>
<div role='form' id='test'>content</div>
<div role='form' id='test' aria-labelled='the name of the form'>content</div>

<div id="manualMode"></div>
<div id="log"></div>
Expand Down
83 changes: 83 additions & 0 deletions core-aam/form-unnamed.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<!doctype html>
<html>
<head>
<title>form</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_SECTION"
]
],
"AXAPI" : [
[
"property",
"AXRole",
"is",
"AXGroup"
],
[
"property",
"AXSubrole",
"is",
"<nil>"
]
],
"IAccessible2" : [
[
"property",
"role",
"is",
"IA2_ROLE_SECTION"
]
],
"MSAA" : [
[
"property",
"role",
"is",
"ROLE_SYSTEM_GROUPING"
]
],
"UIA" : [
[
"property",
"ControlType",
"is",
"Group"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "unnamed form"
}

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

<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>
2 changes: 1 addition & 1 deletion core-aam/tab-manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"property",
"AXSubrole",
"is",
"<nil>"
"AXTabButton"
]
],
"MSAA" : [
Expand Down

0 comments on commit ba31615

Please sign in to comment.