mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-17 00:04:50 +03:00
dea6528c0c
This includes aria role and accessible name computation. Accessible name is covered by wpt tests.
76 lines
1.8 KiB
HTML
76 lines
1.8 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>Name test case 743</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",
|
|
"crazy 4"
|
|
]
|
|
],
|
|
"AXAPI" : [
|
|
[
|
|
"property",
|
|
"AXDescription",
|
|
"is",
|
|
"crazy 4"
|
|
]
|
|
],
|
|
"IAccessible2" : [
|
|
[
|
|
"property",
|
|
"accName",
|
|
"is",
|
|
"crazy 4"
|
|
]
|
|
],
|
|
"UIA" : [
|
|
[
|
|
"property",
|
|
"Name",
|
|
"is",
|
|
"crazy 4"
|
|
]
|
|
]
|
|
},
|
|
"title" : "step 1",
|
|
"type" : "test"
|
|
}
|
|
],
|
|
"title" : "Name test case 743"
|
|
}
|
|
|
|
) ;
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<p>This test examines the ARIA properties for Name test case 743.</p>
|
|
<label for="test">
|
|
crazy
|
|
<div role="spinbutton" aria-valuemin="1" aria-valuemax="7" aria-valuenow="4">
|
|
</div>
|
|
</label>
|
|
<input type="password" id="test" value="baz"/>
|
|
|
|
<div id="manualMode"></div>
|
|
<div id="log"></div>
|
|
<div id="ATTAmessages"></div>
|
|
</body>
|
|
</html>
|