Skip to content

Commit

Permalink
Add new tests for Core-AAM: (web-platform-tests#17742)
Browse files Browse the repository at this point in the history
* aria-expanded on: application, checkbox, switch
 * aria-required on: checkbox
 * aria-posinset and aria-setsize on: row
 * inclusion of children of math role
 * group as valid child of listbox
 * menucheckbox as valid child of group in menu
 * subscript and superscript roles
 * meter role
 * time role
 * insertion and deletion roles
  • Loading branch information
joanmarie authored and Michael Cooper committed Jul 9, 2019
1 parent 00dfc91 commit f56d498
Show file tree
Hide file tree
Showing 14 changed files with 1,253 additions and 0 deletions.
76 changes: 76 additions & 0 deletions core-aam/aria-expanded_true_on_application-manual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<!doctype html>
<html>
<head>
<title>aria-expanded=true on application</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",
"states",
"contains",
"STATE_EXPANDABLE"
],
[
"property",
"states",
"contains",
"STATE_EXPANDED"
]
],
"AXAPI" : [
[
"property",
"AXExpanded",
"is",
"YES"
]
],
"MSAA" : [
[
"property",
"states",
"contains",
"STATE_SYSTEM_EXPANDED"
]
],
"UIA" : [
[
"property",
"ExpandCollapse.ExpandCollapseState",
"is",
"Expanded"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "aria-expanded=true on application"
}

) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for aria-expanded=true on an application.</p>
<div role='application' id='test' aria-expanded='true'>content</div>

<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>
76 changes: 76 additions & 0 deletions core-aam/aria-expanded_true_on_checkbox-manual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<!doctype html>
<html>
<head>
<title>aria-expanded=true on checkbox</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",
"states",
"contains",
"STATE_EXPANDABLE"
],
[
"property",
"states",
"contains",
"STATE_EXPANDED"
]
],
"AXAPI" : [
[
"property",
"AXExpanded",
"is",
"YES"
]
],
"MSAA" : [
[
"property",
"states",
"contains",
"STATE_SYSTEM_EXPANDED"
]
],
"UIA" : [
[
"property",
"ExpandCollapse.ExpandCollapseState",
"is",
"Expanded"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "aria-expanded=true on checkbox"
}

) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for aria-expanded=true on a checkbox.</p>
<div role='checkbox' id='test' aria-expanded='true'>content</div>

<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>
76 changes: 76 additions & 0 deletions core-aam/aria-expanded_true_on_switch-manual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<!doctype html>
<html>
<head>
<title>aria-expanded=true on switch</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",
"states",
"contains",
"STATE_EXPANDABLE"
],
[
"property",
"states",
"contains",
"STATE_EXPANDED"
]
],
"AXAPI" : [
[
"property",
"AXExpanded",
"is",
"YES"
]
],
"MSAA" : [
[
"property",
"states",
"contains",
"STATE_SYSTEM_EXPANDED"
]
],
"UIA" : [
[
"property",
"ExpandCollapse.ExpandCollapseState",
"is",
"Expanded"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "aria-expanded=true on switch"
}

) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for aria-expanded=true on a switch.</p>
<div role='switch' id='test' aria-expanded='true'>content</div>

<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>
110 changes: 110 additions & 0 deletions core-aam/aria-posinset_and_aria-setsize_on_row-manual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
<!doctype html>
<html>
<head>
<title>aria-posinset and aria-setsize on row</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",
"objectAttributes",
"contains",
"posinset:2"
],
[
"property",
"objectAttributes",
"contains",
"setsize:100"
]
],
"AXAPI" : [
[
"property",
"AXARIAPosInSet",
"is",
"2"
],
[
"property",
"AXARIASetSize",
"is",
"100"
]
],
"IAccessible2" : [
[
"property",
"objectAttributes",
"contains",
"posinset:2"
],
[
"property",
"groupPosition",
"contains",
"positionInGroup:2"
],
[
"property",
"objectAttributes",
"contains",
"setsize:100"
],
[
"property",
"groupPosition",
"contains",
"similarItemsInGroup:100"
]
],
"UIA" : [
[
"property",
"AriaProperties.posinset",
"is",
"2"
],
[
"property",
"AriaProperties.setsize",
"is",
"100"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "aria-posinset and aria-setsize on row"
}

) ;
</script>
</head>
<body>
<p>This test examines exposure of aria-posinset and aria-setsize on row</p>
<div role='grid'>
<div role='row' id='test' aria-posinset='2' aria-setsize='100'>
<div role='cell'>content</div>
</div>
</div>

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

0 comments on commit f56d498

Please sign in to comment.