Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[accname] add some tests #26524

Closed
wants to merge 1 commit into from
Closed
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
81 changes: 81 additions & 0 deletions accname/name_file-label-owned-combobox-circle-manual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<!doctype html>
<html>
<head>
<title>Name file-label-owned-combobox-circle</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",
"name",
"is",
"Flash the screen 1 times."
]
],
"AXAPI" : [
[
"property",
"AXDescription",
"is",
"Flash the screen 1 times."
]
],
"IAccessible2" : [
[
"property",
"accName",
"is",
"Flash the screen 1 times."
]
],
"UIA" : [
[
"property",
"Name",
"is",
"Flash the screen 1 times."
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "Name file-label-owned-combobox-circle"
}

) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for Name file-label-owned-combobox-circle.</p>
<input type="file" id="test" />
<label for="test">Flash <span id="id2" aria-owns="id1">the screen</span> times.</label>
<div id="id1" aria-owns="id2">
<div role="combobox">
<div role="textbox"></div>
<ul role="listbox" style="list-style-type: none;">
<li role="option" aria-selected="true">1 </li>
<li role="option">2 </li>
<li role="option">3 </li>
</ul>
</div>
</div>

<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>
72 changes: 72 additions & 0 deletions accname/name_multiple-labels-manual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<!doctype html>
<html>
<head>
<title>Name multiple-labels</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",
"name",
"is",
"foo bar"
]
],
"AXAPI" : [
[
"property",
"AXDescription",
"is",
"foo bar"
]
],
"IAccessible2" : [
[
"property",
"accName",
"is",
"foo bar"
]
],
"UIA" : [
[
"property",
"Name",
"is",
"foo bar"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "Name multiple-labels"
}

) ;
</script>
</head>
<body>
<p>This test examines the all labels are included in the accessible name.</p>
<input type="text" id="test" />
<label for="test">foo</label>
<label for="test">bar</label>

<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>
74 changes: 74 additions & 0 deletions accname/name_pseudo-content-attr.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<!doctype html>
<html>
<head>
<title>Name pseudo-content-attr</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",
"name",
"is",
"barfoo"
]
],
"AXAPI" : [
[
"property",
"AXDescription",
"is",
"barfoo"
]
],
"IAccessible2" : [
[
"property",
"accName",
"is",
"barfoo"
]
],
"UIA" : [
[
"property",
"Name",
"is",
"barfoo"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "Name pseudo-content-attr"
}

) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for Name pseudo-content-attr.</p>
<style>
label:before { content: attr(data-title); }
</style>
<label for="test" data-title="bar">foo</label>
<input type="text" id="test"/>

<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>
74 changes: 74 additions & 0 deletions accname/name_pseudo-content-counter.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<!doctype html>
<html>
<head>
<title>Name pseudo-content-counter</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",
"name",
"is",
"1foo"
]
],
"AXAPI" : [
[
"property",
"AXDescription",
"is",
"1foo"
]
],
"IAccessible2" : [
[
"property",
"accName",
"is",
"1foo"
]
],
"UIA" : [
[
"property",
"Name",
"is",
"1foo"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "Name pseudo-content-counter"
}

) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for Name pseudo-content-counter.</p>
<style>
label:before { content: counter(pseudo-content-counter); }
</style>
<label for="test">foo</label>
<input type="text" id="test"/>

<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>
74 changes: 74 additions & 0 deletions accname/name_pseudo-content-mixed.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<!doctype html>
<html>
<head>
<title>Name pseudo-content-mixed</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",
"name",
"is",
"1. foo"
]
],
"AXAPI" : [
[
"property",
"AXDescription",
"is",
"1. foo"
]
],
"IAccessible2" : [
[
"property",
"accName",
"is",
"1. foo"
]
],
"UIA" : [
[
"property",
"Name",
"is",
"1. foo"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "Name pseudo-content-mixed"
}

) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for Name pseudo-content-mixed.</p>
<style>
label:before { content: counter(pseudo-content-mixed) ". "; }
</style>
<label for="test">foo</label>
<input type="text" id="test"/>

<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>
Loading