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 new tests for Core-AAM: (web-platform-tests#17742)
* aria-expanded on: application, checkbox, switch * aria-required on: checkbox * aria-posinset and aria-setsize on: row * inclusion of children of math role * group as valid child of listbox * menucheckbox as valid child of group in menu * subscript and superscript roles * meter role * time role * insertion and deletion roles
- Loading branch information
Showing
14 changed files
with
1,253 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,76 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>aria-expanded=true on application</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", | ||
"states", | ||
"contains", | ||
"STATE_EXPANDABLE" | ||
], | ||
[ | ||
"property", | ||
"states", | ||
"contains", | ||
"STATE_EXPANDED" | ||
] | ||
], | ||
"AXAPI" : [ | ||
[ | ||
"property", | ||
"AXExpanded", | ||
"is", | ||
"YES" | ||
] | ||
], | ||
"MSAA" : [ | ||
[ | ||
"property", | ||
"states", | ||
"contains", | ||
"STATE_SYSTEM_EXPANDED" | ||
] | ||
], | ||
"UIA" : [ | ||
[ | ||
"property", | ||
"ExpandCollapse.ExpandCollapseState", | ||
"is", | ||
"Expanded" | ||
] | ||
] | ||
}, | ||
"title" : "step 1", | ||
"type" : "test" | ||
} | ||
], | ||
"title" : "aria-expanded=true on application" | ||
} | ||
|
||
) ; | ||
</script> | ||
</head> | ||
<body> | ||
<p>This test examines the ARIA properties for aria-expanded=true on an application.</p> | ||
<div role='application' id='test' aria-expanded='true'>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,76 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>aria-expanded=true on checkbox</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", | ||
"states", | ||
"contains", | ||
"STATE_EXPANDABLE" | ||
], | ||
[ | ||
"property", | ||
"states", | ||
"contains", | ||
"STATE_EXPANDED" | ||
] | ||
], | ||
"AXAPI" : [ | ||
[ | ||
"property", | ||
"AXExpanded", | ||
"is", | ||
"YES" | ||
] | ||
], | ||
"MSAA" : [ | ||
[ | ||
"property", | ||
"states", | ||
"contains", | ||
"STATE_SYSTEM_EXPANDED" | ||
] | ||
], | ||
"UIA" : [ | ||
[ | ||
"property", | ||
"ExpandCollapse.ExpandCollapseState", | ||
"is", | ||
"Expanded" | ||
] | ||
] | ||
}, | ||
"title" : "step 1", | ||
"type" : "test" | ||
} | ||
], | ||
"title" : "aria-expanded=true on checkbox" | ||
} | ||
|
||
) ; | ||
</script> | ||
</head> | ||
<body> | ||
<p>This test examines the ARIA properties for aria-expanded=true on a checkbox.</p> | ||
<div role='checkbox' id='test' aria-expanded='true'>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,76 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>aria-expanded=true on switch</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", | ||
"states", | ||
"contains", | ||
"STATE_EXPANDABLE" | ||
], | ||
[ | ||
"property", | ||
"states", | ||
"contains", | ||
"STATE_EXPANDED" | ||
] | ||
], | ||
"AXAPI" : [ | ||
[ | ||
"property", | ||
"AXExpanded", | ||
"is", | ||
"YES" | ||
] | ||
], | ||
"MSAA" : [ | ||
[ | ||
"property", | ||
"states", | ||
"contains", | ||
"STATE_SYSTEM_EXPANDED" | ||
] | ||
], | ||
"UIA" : [ | ||
[ | ||
"property", | ||
"ExpandCollapse.ExpandCollapseState", | ||
"is", | ||
"Expanded" | ||
] | ||
] | ||
}, | ||
"title" : "step 1", | ||
"type" : "test" | ||
} | ||
], | ||
"title" : "aria-expanded=true on switch" | ||
} | ||
|
||
) ; | ||
</script> | ||
</head> | ||
<body> | ||
<p>This test examines the ARIA properties for aria-expanded=true on a switch.</p> | ||
<div role='switch' id='test' aria-expanded='true'>content</div> | ||
|
||
<div id="manualMode"></div> | ||
<div id="log"></div> | ||
<div id="ATTAmessages"></div> | ||
</body> | ||
</html> |
110 changes: 110 additions & 0 deletions
110
core-aam/aria-posinset_and_aria-setsize_on_row-manual.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,110 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>aria-posinset and aria-setsize on row</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", | ||
"posinset:2" | ||
], | ||
[ | ||
"property", | ||
"objectAttributes", | ||
"contains", | ||
"setsize:100" | ||
] | ||
], | ||
"AXAPI" : [ | ||
[ | ||
"property", | ||
"AXARIAPosInSet", | ||
"is", | ||
"2" | ||
], | ||
[ | ||
"property", | ||
"AXARIASetSize", | ||
"is", | ||
"100" | ||
] | ||
], | ||
"IAccessible2" : [ | ||
[ | ||
"property", | ||
"objectAttributes", | ||
"contains", | ||
"posinset:2" | ||
], | ||
[ | ||
"property", | ||
"groupPosition", | ||
"contains", | ||
"positionInGroup:2" | ||
], | ||
[ | ||
"property", | ||
"objectAttributes", | ||
"contains", | ||
"setsize:100" | ||
], | ||
[ | ||
"property", | ||
"groupPosition", | ||
"contains", | ||
"similarItemsInGroup:100" | ||
] | ||
], | ||
"UIA" : [ | ||
[ | ||
"property", | ||
"AriaProperties.posinset", | ||
"is", | ||
"2" | ||
], | ||
[ | ||
"property", | ||
"AriaProperties.setsize", | ||
"is", | ||
"100" | ||
] | ||
] | ||
}, | ||
"title" : "step 1", | ||
"type" : "test" | ||
} | ||
], | ||
"title" : "aria-posinset and aria-setsize on row" | ||
} | ||
|
||
) ; | ||
</script> | ||
</head> | ||
<body> | ||
<p>This test examines exposure of aria-posinset and aria-setsize on row</p> | ||
<div role='grid'> | ||
<div role='row' id='test' aria-posinset='2' aria-setsize='100'> | ||
<div role='cell'>content</div> | ||
</div> | ||
</div> | ||
|
||
<div id="manualMode"></div> | ||
<div id="log"></div> | ||
<div id="ATTAmessages"></div> | ||
</body> | ||
</html> |
Oops, something went wrong.