Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
const node = await test_driver.get_accessibility_api_node('test');

if (node.API == 'atspi') {
assert_equals(node.role, 'push button', 'Atspi role');
assert_equals(node.role, 'button', 'Atspi role');
}
else if (node.API == 'axapi') {
assert_equals(node.role, 'AXButton', 'AX API role');
Expand Down
128 changes: 128 additions & 0 deletions core-aam/acacia/test-statements/aria-autocomplete.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
<!doctype html>
<meta charset=utf-8>
<html>
<head>
<title>aria-braillelabel</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="/resources/testdriver-actions.js"></script>
<script src="scripts/aam-utils.js"></script>
</head>
<body>

<input role='combobox' id='test1' aria-autocomplete='both'>
<input role='combobox' id='test2' aria-autocomplete='inline'>
<input role='combobox' id='test3' aria-autocomplete='list'>

<script>
AAMUtils.verifyAPI(
'aria-autocomplete=both',
'test1',
{
"Atspi" : [
[
"property",
"objectAttributes",
"contains",
"autocomplete:both"
],
[
"property",
"states",
"contains",
"STATE_SUPPORTS_AUTOCOMPLETION"
]
],
"IAccessible2" : [
[
"property",
"objectAttributes",
"contains",
"autocomplete:both"
],
[
"property",
"states",
"contains",
"IA2_STATE_SUPPORTS_AUTOCOMPLETION"
]
]
}
);

AAMUtils.verifyAPI(
'aria-autocomplete=inline',
'test2',
{
"Atspi" : [
[
"property",
"objectAttributes",
"contains",
"autocomplete:inline"
],
[
"property",
"states",
"contains",
"STATE_SUPPORTS_AUTOCOMPLETION"
]
],
"IAccessible2" : [
[
"property",
"objectAttributes",
"contains",
"autocomplete:inline"
],
[
"property",
"states",
"contains",
"IA2_STATE_SUPPORTS_AUTOCOMPLETION"
]
]
}
);

AAMUtils.verifyAPI(
'aria-autocomplete=list',
'test3',
{
"Atspi" : [
[
"property",
"objectAttributes",
"contains",
"autocomplete:list"
],
[
"property",
"states",
"contains",
"STATE_SUPPORTS_AUTOCOMPLETION"
]
],
"IAccessible2" : [
[
"property",
"objectAttributes",
"contains",
"autocomplete:list"
],
[
"property",
"states",
"contains",
"IA2_STATE_SUPPORTS_AUTOCOMPLETION"
]
]
}
);

</script>

</body>
</html>
59 changes: 59 additions & 0 deletions core-aam/acacia/test-statements/aria-braillelabel.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!doctype html>
<meta charset=utf-8>
<html>
<head>
<title>aria-braillelabel</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="/resources/testdriver-actions.js"></script>
<script src="scripts/aam-utils.js"></script>
</head>
<body>

<button id=test aria-braillelabel=foobar>

<script>
AAMUtils.verifyAPI(
'aria-braillelabel',
'test',
{
"Atspi" : [
[
"property",
"objectAttributes",
"contains",
"braillelabel:foobar"
]
],
"AXAPI" : [
[
"property",
"AXBrailleLabel",
"is",
"foobar"
]
],
"IAccessible2" : [
[
"property",
"objectAttributes",
"contains",
"braillelabel:foobar"
]
],
"UIA" : [
[
"property",
"AriaProperties.braillelabel",
"is",
"foobar"
]
]
},
);
</script>

</body>
</html>
73 changes: 73 additions & 0 deletions core-aam/acacia/test-statements/aria-errormessage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<!doctype html>
<meta charset=utf-8>
<html>
<head>
<title>aria-flowto</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="/resources/testdriver-actions.js"></script>
<script src="scripts/aam-utils.js"></script>
</head>
<body>

<div role='checkbox' id='test' aria-errormessage='error1 error2' aria-invalid='true'>content</div>
<div id='error1'>hello</div>
<div id='error2'>world</div>

<script>
AAMUtils.verifyAPI(
'aria-flowto',
'test',
{
"Atspi" : [
[
"relation",
"RELATION_ERROR_MESSAGE",
"is",
['error1', 'error2']
],
[
"reverseRelation",
"RELATION_ERROR_FOR",
"is",
['error1', 'error2']
]
],
"AXAPI" : [
[
"property",
"AXErrorMessageElements",
"is",
['error1', 'error2']
]
],
"IAccessible2" : [
[
"relation",
"IA2_RELATION_ERROR",
"is",
['error1', 'error2']
],
[
"reverseRelation",
"IA2_RELATION_ERROR_FOR",
"is",
['error1', 'error2']
]
],
"UIA" : [
[
"property",
"ControllerFor",
"is",
['error1', 'error2']
]
]
}
);
</script>

</body>
</html>
77 changes: 77 additions & 0 deletions core-aam/acacia/test-statements/blockquote.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<!doctype html>
<meta charset=utf-8>
<html>
<head>
<title>role blockquote</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="/resources/testdriver-actions.js"></script>
<script src="scripts/aam-utils.js"></script>
</head>
<body>

<div id=test role=blockquote>quote</div>

<script>
AAMUtils.verifyAPI(
'role=blockquote',
'test',
{
"Atspi" : [
[
"property",
"role",
"is",
"block quote"
]
],
"AXAPI" : [
[
"property",
"AXRole",
"is",
"AXGroup"
],
[
"property",
"AXSubrole",
"is",
"<nil>"
]
],
"IAccessible2" : [
[
"property",
"role",
"is",
"IA2_ROLE_BLOCK_QUOTE"
],
[
"property",
"msaaRole",
"is",
"ROLE_SYSTEM_GROUPING"
]
],
"UIA" : [
[
"property",
"ControlType",
"is",
"Group"
],
[
"property",
"LocalizedControlType",
"is",
"blockquote"
]
]
}
);
</script>

</body>
</html>
Loading