Skip to content

Commit

Permalink
WAI: New, updated, and less-linty tests (web-platform-tests#7426)
Browse files Browse the repository at this point in the history
* wai-aria/tools: Fix make_tests.pl's EOF-whitespace bug

* core-aam: New and updated tests

* Create tests for accessibility events
* Add missing assertions
* Rename tests to add/remove "new" from filenames so we can more quickly
  discern things we must test as part of the 1.1 rec track process
* Remove EOF trailing whitespace

* wai-aria: Regenerate tests to remove EOF trailing whitespace lint

* core-aam: Fix more whitespace lint
  • Loading branch information
joanmarie authored and jakearchibald committed Nov 16, 2017
1 parent f5648ba commit 8ee2275
Show file tree
Hide file tree
Showing 420 changed files with 3,393 additions and 387 deletions.
1 change: 0 additions & 1 deletion core-aam/alert-manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,3 @@
<div id="ATTAmessages"></div>
</body>
</html>

1 change: 0 additions & 1 deletion core-aam/alertdialog-manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,3 @@
<div id="ATTAmessages"></div>
</body>
</html>

1 change: 0 additions & 1 deletion core-aam/application-manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,3 @@
<div id="ATTAmessages"></div>
</body>
</html>

1 change: 0 additions & 1 deletion core-aam/aria-atomic_false-manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,3 @@
<div id="ATTAmessages"></div>
</body>
</html>

1 change: 0 additions & 1 deletion core-aam/aria-atomic_true-manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,3 @@
<div id="ATTAmessages"></div>
</body>
</html>

69 changes: 69 additions & 0 deletions core-aam/aria-autocomplete_both-manual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<!doctype html>
<html>
<head>
<title>aria-autocomplete=both</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",
"objectAttributes",
"contains",
"autocomplete:both"
],
[
"property",
"states",
"contains",
"STATE_SUPPORTS_AUTOCOMPLETION"
]
],
"IAccessible2" : [
[
"property",
"objectAttributes",
"contains",
"autocomplete:both"
],
[
"property",
"states",
"contains",
"IA2_STATE_SUPPORTS_AUTOCOMPLETION"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "aria-autocomplete=both"
}

) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for aria-autocomplete=both.</p>
<div role='combobox' id='test' aria-autocomplete='both'>
<div role='textbox'>content</div>
</div>

<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>
69 changes: 69 additions & 0 deletions core-aam/aria-autocomplete_inline-manual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<!doctype html>
<html>
<head>
<title>aria-autocomplete=inline</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",
"objectAttributes",
"contains",
"autocomplete:inline"
],
[
"property",
"states",
"contains",
"STATE_SUPPORTS_AUTOCOMPLETION"
]
],
"IAccessible2" : [
[
"property",
"objectAttributes",
"contains",
"autocomplete:inline"
],
[
"property",
"states",
"contains",
"IA2_STATE_SUPPORTS_AUTOCOMPLETION"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "aria-autocomplete=inline"
}

) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for aria-autocomplete=inline.</p>
<div role='combobox' id='test' aria-autocomplete='inline'>
<div role='textbox'>content</div>
</div>

<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>
69 changes: 69 additions & 0 deletions core-aam/aria-autocomplete_list-manual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<!doctype html>
<html>
<head>
<title>aria-autocomplete=list</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",
"objectAttributes",
"contains",
"autocomplete:list"
],
[
"property",
"states",
"contains",
"STATE_SUPPORTS_AUTOCOMPLETION"
]
],
"IAccessible2" : [
[
"property",
"objectAttributes",
"contains",
"autocomplete:list"
],
[
"property",
"states",
"contains",
"IA2_STATE_SUPPORTS_AUTOCOMPLETION"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "aria-autocomplete=list"
}

) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for aria-autocomplete=list.</p>
<div role='combobox' id='test' aria-autocomplete='list'>
<div role='textbox'>content</div>
</div>

<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>
1 change: 0 additions & 1 deletion core-aam/aria-busy_false-manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,3 @@
<div id="ATTAmessages"></div>
</body>
</html>

1 change: 0 additions & 1 deletion core-aam/aria-busy_true-manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,3 @@
<div id="ATTAmessages"></div>
</body>
</html>

136 changes: 136 additions & 0 deletions core-aam/aria-busy_value_changes-manual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
<!doctype html>
<html>
<head>
<title>aria-busy value changes</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" : [
{
"attribute" : "aria-busy",
"element" : "test",
"title" : "step 1",
"type" : "attribute",
"value" : "true"
},
{
"element" : "test",
"test" : {
"ATK" : [
[
"event",
"type",
"is",
"object:state-changed:busy"
],
[
"event",
"detail1",
"is",
"1"
]
],
"AXAPI" : [
[
"event",
"type",
"is",
"AXElementBusyChanged"
]
],
"MSAA" : [
[
"event",
"type",
"is",
"EVENT_OBJECT_STATECHANGE"
]
],
"UIA" : [
[
"event",
"type",
"is",
"PropertyChangedEvent"
]
]
},
"title" : "step 2",
"type" : "test"
},
{
"attribute" : "aria-busy",
"element" : "test",
"title" : "step 3",
"type" : "attribute",
"value" : "false"
},
{
"element" : "test",
"test" : {
"ATK" : [
[
"event",
"type",
"is",
"object:state-changed:busy"
],
[
"event",
"detail1",
"is",
"0"
]
],
"AXAPI" : [
[
"event",
"type",
"is",
"AXElementBusyChanged"
]
],
"MSAA" : [
[
"event",
"type",
"is",
"EVENT_OBJECT_STATECHANGE"
]
],
"UIA" : [
[
"event",
"type",
"is",
"PropertyChangedEvent"
]
]
},
"title" : "step 4",
"type" : "test"
}
],
"title" : "aria-busy value changes"
}

) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for aria-busy value changes.</p>
<div role='group' id='test'>content</div>

<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>
1 change: 0 additions & 1 deletion core-aam/aria-checked_false_on_checkbox-manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,3 @@
<div id="ATTAmessages"></div>
</body>
</html>

1 change: 0 additions & 1 deletion core-aam/aria-checked_false_on_menuitemradio-manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,3 @@
<div id="ATTAmessages"></div>
</body>
</html>

1 change: 0 additions & 1 deletion core-aam/aria-checked_mixed-manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,3 @@
<div id="ATTAmessages"></div>
</body>
</html>

Loading

0 comments on commit 8ee2275

Please sign in to comment.