-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CORE-AAM: add tests for roles mark, comment and suggestion
See issue: w3c/core-aam#62
- Loading branch information
1 parent
7c447d0
commit 715c7c9
Showing
3 changed files
with
273 additions
and
0 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 |
---|---|---|
@@ -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> |
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,89 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>mark</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_MARK" | ||
], | ||
[ | ||
"property", | ||
"objectAttributes", | ||
"contains", | ||
"xml-roles:mark" | ||
] | ||
], | ||
"AXAPI" : [ | ||
[ | ||
"property", | ||
"AXRole", | ||
"is", | ||
"AXGroup" | ||
] | ||
], | ||
"IAccessible2" : [ | ||
[ | ||
"property", | ||
"role", | ||
"is", | ||
"IA2_ROLE_MARK" | ||
], | ||
[ | ||
"property", | ||
"objectAttributes", | ||
"contains", | ||
"xml-roles:mark" | ||
] | ||
], | ||
"MSAA" : [ | ||
[ | ||
"property", | ||
"role", | ||
"is", | ||
"ROLE_SYSTEM_GROUPING" | ||
] | ||
], | ||
"UIA" : [ | ||
[ | ||
"property", | ||
"ControlType", | ||
"is", | ||
"Group" | ||
] | ||
] | ||
}, | ||
"title" : "step 1", | ||
"type" : "test" | ||
} | ||
], | ||
"title" : "mark" | ||
} | ||
|
||
) ; | ||
</script> | ||
</head> | ||
<body> | ||
<p>This test examines the ARIA properties for mark.</p> | ||
<div role="mark" 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 |
---|---|---|
@@ -0,0 +1,96 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>suggestion</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_SUGGESTION" | ||
], | ||
[ | ||
"property", | ||
"objectAttributes", | ||
"contains", | ||
"xml-roles:suggestion" | ||
] | ||
], | ||
"AXAPI" : [ | ||
[ | ||
"property", | ||
"AXRole", | ||
"is", | ||
"AXGroup" | ||
] | ||
], | ||
"IAccessible2" : [ | ||
[ | ||
"property", | ||
"role", | ||
"is", | ||
"IA2_ROLE_SUGGESTION" | ||
], | ||
[ | ||
"property", | ||
"objectAttributes", | ||
"contains", | ||
"xml-roles:suggestion" | ||
] | ||
], | ||
"MSAA" : [ | ||
[ | ||
"property", | ||
"role", | ||
"is", | ||
"ROLE_SYSTEM_GROUPING" | ||
] | ||
], | ||
"UIA" : [ | ||
[ | ||
"property", | ||
"ControlType", | ||
"is", | ||
"Group" | ||
], | ||
[ | ||
"property", | ||
"LocalizedControlType", | ||
"is", | ||
"suggestion" | ||
] | ||
] | ||
}, | ||
"title" : "step 1", | ||
"type" : "test" | ||
} | ||
], | ||
"title" : "suggestion" | ||
} | ||
|
||
) ; | ||
</script> | ||
</head> | ||
<body> | ||
<p>This test examines the ARIA properties for suggestion.</p> | ||
<div role='suggestion' id='test'>content</div> | ||
|
||
<div id="manualMode"></div> | ||
<div id="log"></div> | ||
<div id="ATTAmessages"></div> | ||
</body> | ||
</html> |