forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for core-aam: aria-braillelabel and aria-brailleroledescrip…
…tion (web-platform-tests#35323)
- Loading branch information
1 parent
b0a4f6a
commit f6d3be5
Showing
3 changed files
with
213 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,71 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>aria-braillelabel</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", | ||
"braillelabel:foobar" | ||
] | ||
], | ||
"AXAPI" : [ | ||
[ | ||
"property", | ||
"AXBrailleLabel", | ||
"is", | ||
"foobar" | ||
] | ||
], | ||
"IAccessible2" : [ | ||
[ | ||
"property", | ||
"objectAttributes", | ||
"contains", | ||
"braillelabel:foobar" | ||
] | ||
], | ||
"UIA" : [ | ||
[ | ||
"property", | ||
"AriaProperties.braillelabel", | ||
"is", | ||
"foobar" | ||
] | ||
] | ||
}, | ||
"title" : "step 1", | ||
"type" : "test" | ||
} | ||
], | ||
"title" : "aria-braillelabel" | ||
} | ||
|
||
) ; | ||
</script> | ||
</head> | ||
<body> | ||
<p>This test examines the ARIA properties for aria-braillelabel.</p> | ||
<button id="test" aria-braillelabel="foobar"> | ||
</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,71 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>aria-brailleroledescription</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", | ||
"brailleroledescription:foobar" | ||
] | ||
], | ||
"AXAPI" : [ | ||
[ | ||
"property", | ||
"AXBrailleRoleDescription", | ||
"is", | ||
"foobar" | ||
] | ||
], | ||
"IAccessible2" : [ | ||
[ | ||
"property", | ||
"objectAttributes", | ||
"contains", | ||
"brailleroledescription:foobar" | ||
] | ||
], | ||
"UIA" : [ | ||
[ | ||
"property", | ||
"AriaProperties.brailleroledescription", | ||
"is", | ||
"foobar" | ||
] | ||
] | ||
}, | ||
"title" : "step 1", | ||
"type" : "test" | ||
} | ||
], | ||
"title" : "aria-brailleroledescription" | ||
} | ||
|
||
) ; | ||
</script> | ||
</head> | ||
<body> | ||
<p>This test examines the ARIA properties for aria-brailleroledescription.</p> | ||
<button id="test" aria-brailleroledescription="foobar"> | ||
</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,71 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>aria-brailleroledescription is empty</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", | ||
"doesNotContain", | ||
"brailleroledescription" | ||
] | ||
], | ||
"AXAPI" : [ | ||
[ | ||
"property", | ||
"objectAttributes", | ||
"doesNotContain", | ||
"AXBrailleRoleDescription" | ||
] | ||
], | ||
"IAccessible2" : [ | ||
[ | ||
"property", | ||
"objectAttributes", | ||
"doesNotContain", | ||
"brailleroledescription" | ||
] | ||
], | ||
"UIA" : [ | ||
[ | ||
"property", | ||
"AriaProperties", | ||
"doesNotContain", | ||
"brailleroledescription" | ||
] | ||
] | ||
}, | ||
"title" : "step 1", | ||
"type" : "test" | ||
} | ||
], | ||
"title" : "aria-brailleroledescription=''" | ||
} | ||
|
||
) ; | ||
</script> | ||
</head> | ||
<body> | ||
<p>This test examines the ARIA properties for aria-brailleroledescription is empty.</p> | ||
<button id="test" aria-brailleroledescription=""> | ||
</div> | ||
|
||
<div id="manualMode"></div> | ||
<div id="log"></div> | ||
<div id="ATTAmessages"></div> | ||
</body> | ||
</html> |