playwright/tests/assets/wpt/accname/manual/name_text-label-embedded-spinbutton-manual.html
Dmitry Gozman 9b6627a063
feat(role): roll and pass WPT accname tests, calculate description (#30434)
There are new "non-manual" WPT accname tests that we now mostly pass,
which required a few tweeks in calculating role and name.

Also implemented accessible description computation, which is just a
small addition on top of accessible name, and passed respective wpt
tests.

References #18332.
2024-04-19 12:49:49 -07:00

73 lines
1.8 KiB
HTML

<!doctype html>
<html>
<head>
<title>Name text-label-embedded-spinbutton</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 5 baz"
]
],
"AXAPI" : [
[
"property",
"AXDescription",
"is",
"foo 5 baz"
]
],
"IAccessible2" : [
[
"property",
"accName",
"is",
"foo 5 baz"
]
],
"UIA" : [
[
"property",
"Name",
"is",
"foo 5 baz"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "Name text-label-embedded-spinbutton"
}
) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for Name text-label-embedded-spinbutton.</p>
<input type="text" id="test" />
<label for="test">foo <input role="spinbutton" type="number" value="5" min="1" max="10" aria-valuenow="5" aria-valuemin="1" aria-valuemax="10"> baz
</label>
<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>