forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WAI: New, updated, and less-linty tests (web-platform-tests#7426)
* 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
1 parent
f5648ba
commit 8ee2275
Showing
420 changed files
with
3,393 additions
and
387 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,4 +93,3 @@ | |
<div id="ATTAmessages"></div> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,4 +81,3 @@ | |
<div id="ATTAmessages"></div> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,4 +87,3 @@ | |
<div id="ATTAmessages"></div> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,4 +83,3 @@ | |
<div id="ATTAmessages"></div> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,4 +119,3 @@ | |
<div id="ATTAmessages"></div> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,4 +69,3 @@ | |
<div id="ATTAmessages"></div> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,4 +69,3 @@ | |
<div id="ATTAmessages"></div> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,4 +83,3 @@ | |
<div id="ATTAmessages"></div> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,4 +97,3 @@ | |
<div id="ATTAmessages"></div> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,4 +89,3 @@ | |
<div id="ATTAmessages"></div> | ||
</body> | ||
</html> | ||
|
Oops, something went wrong.