Skip to content

Commit

Permalink
Core-AAM: New and updated tests (web-platform-tests#7456)
Browse files Browse the repository at this point in the history
* Add tests for inclusion/exclusion from accessibility tree
* Add some missing required attributes to a few existing tests
  • Loading branch information
joanmarie authored Sep 24, 2017
1 parent b47289f commit 82d83b1
Show file tree
Hide file tree
Showing 35 changed files with 2,047 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core-aam/aria-atomic_false-manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
</head>
<body>
<p>This test examines the ARIA properties for aria-atomic=false.</p>
<div role='group' id='test' aria-atomic='false'>
<div role='group' id='test' aria-atomic='false' aria-live='polite'>
<div role='group' id='child'>content</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion core-aam/aria-atomic_true-manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
</head>
<body>
<p>This test examines the ARIA properties for aria-atomic=true.</p>
<div role='group' id='test' aria-atomic='true'>
<div role='group' id='test' aria-atomic='true' aria-live='polite'>
<div role='group' id='child'>content</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion core-aam/aria-errormessage-manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
</head>
<body>
<p>This test examines the ARIA properties for aria-errormessage.</p>
<div role='group' id='test' aria-errormessage='error'>content</div>
<div role='group' id='test' aria-errormessage='error' aria-invalid='true'>content</div>
<div id='error'>hello world</div>

<div id="manualMode"></div>
Expand Down
2 changes: 1 addition & 1 deletion core-aam/aria-level_on_non-heading-manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<p>This test examines the ARIA properties for aria-level on non-heading.</p>
<div role='tree'>
<div role='treeitem' id='test' aria-level='5'>content</div>
</div>then expose the element with id of 'test' with the platform mappings for aria-level on non-heading.
</div>

<div id="manualMode"></div>
<div id="log"></div>
Expand Down
2 changes: 1 addition & 1 deletion core-aam/aria-relevant-manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
</head>
<body>
<p>This test examines the ARIA properties for aria-relevant.</p>
<div role='group' id='test' aria-relevant='additions'>
<div role='group' id='test' aria-relevant='additions' aria-live='polite'>
<div role='group' id='child'>content</div>
</div>

Expand Down
71 changes: 71 additions & 0 deletions core-aam/exclude_element_hidden_with_css_display:none-manual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<!doctype html>
<html>
<head>
<title>Exclude element hidden with CSS display:none</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link rel="stylesheet" href="/resources/testharness.css">
<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",
"accessible",
"is",
"false"
]
],
"AXAPI" : [
[
"property",
"accessible",
"is",
"false"
]
],
"MSAA" : [
[
"property",
"accessible",
"is",
"false"
]
],
"UIA" : [
[
"property",
"accessible",
"is",
"false"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "Exclude element hidden with CSS display:none"
}

) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for Exclude element hidden with CSS display:none.</p>
<div role='button' style='display:none;'>content</div>

<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<!doctype html>
<html>
<head>
<title>Exclude element hidden with CSS visibility:hidden</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link rel="stylesheet" href="/resources/testharness.css">
<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",
"accessible",
"is",
"false"
]
],
"AXAPI" : [
[
"property",
"accessible",
"is",
"false"
]
],
"MSAA" : [
[
"property",
"accessible",
"is",
"false"
]
],
"UIA" : [
[
"property",
"accessible",
"is",
"false"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "Exclude element hidden with CSS visibility:hidden"
}

) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for Exclude element hidden with CSS visibility:hidden.</p>
<div role='button' style='visibility:hidden;'>content</div>

<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>
71 changes: 71 additions & 0 deletions core-aam/exclude_element_hidden_with_html5_hidden-manual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<!doctype html>
<html>
<head>
<title>Exclude element hidden with HTML5 hidden</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link rel="stylesheet" href="/resources/testharness.css">
<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",
"accessible",
"is",
"false"
]
],
"AXAPI" : [
[
"property",
"accessible",
"is",
"false"
]
],
"MSAA" : [
[
"property",
"accessible",
"is",
"false"
]
],
"UIA" : [
[
"property",
"accessible",
"is",
"false"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "Exclude element hidden with HTML5 hidden"
}

) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for Exclude element hidden with HTML5 hidden.</p>
<div role='button' hidden>content</div>

<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>
73 changes: 73 additions & 0 deletions core-aam/exclude_presentational_children_of_button-manual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<!doctype html>
<html>
<head>
<title>Exclude presentational children of button</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link rel="stylesheet" href="/resources/testharness.css">
<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",
"accessible",
"is",
"false"
]
],
"AXAPI" : [
[
"property",
"accessible",
"is",
"false"
]
],
"MSAA" : [
[
"property",
"accessible",
"is",
"false"
]
],
"UIA" : [
[
"property",
"accessible",
"is",
"false"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "Exclude presentational children of button"
}

) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for Exclude presentational children of button.</p>
<div role='button'>
<div id='test'>content</div>
</div>

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

0 comments on commit 82d83b1

Please sign in to comment.