mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
dea6528c0c
This includes aria role and accessible name computation. Accessible name is covered by wpt tests.
77 lines
1.8 KiB
HTML
77 lines
1.8 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>Name test case 659</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 baz"
|
|
]
|
|
],
|
|
"AXAPI" : [
|
|
[
|
|
"property",
|
|
"AXDescription",
|
|
"is",
|
|
"foo bar baz"
|
|
]
|
|
],
|
|
"IAccessible2" : [
|
|
[
|
|
"property",
|
|
"accName",
|
|
"is",
|
|
"foo bar baz"
|
|
]
|
|
],
|
|
"UIA" : [
|
|
[
|
|
"property",
|
|
"Name",
|
|
"is",
|
|
"foo bar baz"
|
|
]
|
|
]
|
|
},
|
|
"title" : "step 1",
|
|
"type" : "test"
|
|
}
|
|
],
|
|
"title" : "Name test case 659"
|
|
}
|
|
|
|
) ;
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<p>This test examines the ARIA properties for Name test case 659.</p>
|
|
<style type="text/css">
|
|
label:before { content: "foo"; }
|
|
label:after { content: "baz"; }
|
|
</style>
|
|
<form>
|
|
<label for="test" title="bar"><input id="test" type="text" name="test" title="buz"></label>
|
|
</form>
|
|
|
|
<div id="manualMode"></div>
|
|
<div id="log"></div>
|
|
<div id="ATTAmessages"></div>
|
|
</body>
|
|
</html>
|