зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1453414 [wpt PR 10433] - accname: Updated tests, a=testonly
Automatic update from web-platform-testsaccname: Updated tests (#10433) * Add missing "hidden" style from several tests * Fix expectations for several tests with presentation role used on img * Fix bogus expectations on name and description calculations with combobox * Fix incorrect whitespace in expectations for name from content with spans * Add test for which coverage was missing -- wpt-commits: 4cf7a66b04de7869777091b118892aac79659f6f wpt-pr: 10433 wpt-commits: 4cf7a66b04de7869777091b118892aac79659f6f wpt-pr: 10433
This commit is contained in:
Родитель
8037e18c0f
Коммит
a627e19728
|
@ -139,6 +139,12 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"accname/description_1.0_combobox-focusable-manual.html": [
|
||||
[
|
||||
"/accname/description_1.0_combobox-focusable-manual.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"accname/description_from_content_of_describedby_element-manual.html": [
|
||||
[
|
||||
"/accname/description_from_content_of_describedby_element-manual.html",
|
||||
|
@ -400972,12 +400978,16 @@
|
|||
"3a6002295ea2893ba74763e46965bd2d1291d55b",
|
||||
"support"
|
||||
],
|
||||
"accname/description_1.0_combobox-focusable-manual.html": [
|
||||
"4d68bb9b9a50d4db1bcbcd9d273ef1406a940061",
|
||||
"manual"
|
||||
],
|
||||
"accname/description_from_content_of_describedby_element-manual.html": [
|
||||
"9bf362dc2f578e507bf8d0f7133f7256e061e1d2",
|
||||
"8e96e4d80581fadd56434a85745b9411cc0af841",
|
||||
"manual"
|
||||
],
|
||||
"accname/description_from_content_of_describedby_element_which_is_hidden-manual.html": [
|
||||
"51e770a781330c01ef8ac607a8ceae8fbd9d84fd",
|
||||
"4d253f206ccefa7f3db9bc96a4f710a2bc62971d",
|
||||
"manual"
|
||||
],
|
||||
"accname/description_link-with-label-manual.html": [
|
||||
|
@ -401037,7 +401047,7 @@
|
|||
"manual"
|
||||
],
|
||||
"accname/name_1.0_combobox-focusable-manual.html": [
|
||||
"3d6b70b4994608289b7fa1c70ea4e4ec905bc76a",
|
||||
"100366728ba5032fadb632ca855795d114c7d87b",
|
||||
"manual"
|
||||
],
|
||||
"accname/name_checkbox-label-embedded-combobox-manual.html": [
|
||||
|
@ -401109,7 +401119,7 @@
|
|||
"manual"
|
||||
],
|
||||
"accname/name_file-label-inline-hidden-elements-manual.html": [
|
||||
"562e670c4090233ece67a481e13ca63e6dfafc57",
|
||||
"7b7c1f54e98c21aff89427fee9dc963a68df84f7",
|
||||
"manual"
|
||||
],
|
||||
"accname/name_file-label-owned-combobox-manual.html": [
|
||||
|
@ -401125,19 +401135,19 @@
|
|||
"manual"
|
||||
],
|
||||
"accname/name_from_content-manual.html": [
|
||||
"3553e365861c933b7b6789663e5b868e26748b88",
|
||||
"a210d33ca9e562fae37f60de8e6212e279da375c",
|
||||
"manual"
|
||||
],
|
||||
"accname/name_from_content_of_label-manual.html": [
|
||||
"f14085504a2008a4b82eddde2b41a05f465a47ae",
|
||||
"958c2fa1501dfb3a7152e63cd56f47a481b95020",
|
||||
"manual"
|
||||
],
|
||||
"accname/name_from_content_of_labelledby_element-manual.html": [
|
||||
"e917c6412966976e4eb6eae1e379a7e01bfcb5d1",
|
||||
"e18596656eebf15f2e02974f1be00500dbb6a87f",
|
||||
"manual"
|
||||
],
|
||||
"accname/name_from_content_of_labelledby_elements_one_of_which_is_hidden-manual.html": [
|
||||
"0e1d91be218401271e573e6bd93260caa1f9e842",
|
||||
"006376e2c39418d0205601ef58d65287a8c8794b",
|
||||
"manual"
|
||||
],
|
||||
"accname/name_heading-combobox-focusable-alternative-manual.html": [
|
||||
|
@ -401149,7 +401159,7 @@
|
|||
"manual"
|
||||
],
|
||||
"accname/name_link-mixed-content-manual.html": [
|
||||
"d83619ac255e546e019272e103f03d50dc4b9c36",
|
||||
"950f238d319e7da811ba3a8923e43e76b612d38c",
|
||||
"manual"
|
||||
],
|
||||
"accname/name_link-with-label-manual.html": [
|
||||
|
|
|
@ -0,0 +1,73 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Description 1.0 combobox-focusable</title>
|
||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
|
||||
<link rel="stylesheet" href="/resources/testharness.css">
|
||||
<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",
|
||||
"description",
|
||||
"is",
|
||||
""
|
||||
]
|
||||
],
|
||||
"AXAPI" : [
|
||||
[
|
||||
"property",
|
||||
"AXHelp",
|
||||
"is",
|
||||
""
|
||||
]
|
||||
],
|
||||
"IAccessible2" : [
|
||||
[
|
||||
"property",
|
||||
"accDescription",
|
||||
"is",
|
||||
""
|
||||
]
|
||||
],
|
||||
"UIA" : [
|
||||
[
|
||||
"property",
|
||||
"Description",
|
||||
"is",
|
||||
""
|
||||
]
|
||||
]
|
||||
},
|
||||
"title" : "step 1",
|
||||
"type" : "test"
|
||||
}
|
||||
],
|
||||
"title" : "Description 1.0 combobox-focusable"
|
||||
}
|
||||
|
||||
) ;
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<p>This test examines the ARIA properties for Description 1.0 combobox-focusable.</p>
|
||||
<div id="test" role="combobox" tabindex="0" title="Choose your language.">
|
||||
<span> English </span>
|
||||
</div>
|
||||
|
||||
<div id="manualMode"></div>
|
||||
<div id="log"></div>
|
||||
<div id="ATTAmessages"></div>
|
||||
</body>
|
||||
</html>
|
|
@ -22,7 +22,7 @@
|
|||
"property",
|
||||
"description",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED) Where are my marbles?"
|
||||
"My name is Eli the weird. (QED) Where are my marbles?"
|
||||
]
|
||||
],
|
||||
"AXAPI" : [
|
||||
|
@ -30,7 +30,7 @@
|
|||
"property",
|
||||
"AXHelp",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED) Where are my marbles?"
|
||||
"My name is Eli the weird. (QED) Where are my marbles?"
|
||||
]
|
||||
],
|
||||
"IAccessible2" : [
|
||||
|
@ -38,7 +38,7 @@
|
|||
"property",
|
||||
"accDescription",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED) Where are my marbles?"
|
||||
"My name is Eli the weird. (QED) Where are my marbles?"
|
||||
]
|
||||
],
|
||||
"UIA" : [
|
||||
|
@ -46,7 +46,7 @@
|
|||
"property",
|
||||
"Description",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED) Where are my marbles?"
|
||||
"My name is Eli the weird. (QED) Where are my marbles?"
|
||||
]
|
||||
]
|
||||
},
|
||||
|
@ -62,7 +62,10 @@
|
|||
</head>
|
||||
<body>
|
||||
<p>This test examines the ARIA properties for Description from content of describedby element.</p>
|
||||
<input id="test" type="text" aria-label="Important stuff" aria-describedby="descId" />
|
||||
<style>
|
||||
.hidden { display: none; }
|
||||
</style>
|
||||
<input id="test" type="text" aria-label="Important stuff" aria-describedby="descId" />
|
||||
<div>
|
||||
<div id="descId">
|
||||
<span aria-hidden="true"><i> Hello, </i></span>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
"property",
|
||||
"description",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED) Where are my marbles?"
|
||||
"My name is Eli the weird. (QED) Where are my marbles?"
|
||||
]
|
||||
],
|
||||
"AXAPI" : [
|
||||
|
@ -30,7 +30,7 @@
|
|||
"property",
|
||||
"AXHelp",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED) Where are my marbles?"
|
||||
"My name is Eli the weird. (QED) Where are my marbles?"
|
||||
]
|
||||
],
|
||||
"IAccessible2" : [
|
||||
|
@ -38,7 +38,7 @@
|
|||
"property",
|
||||
"accDescription",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED) Where are my marbles?"
|
||||
"My name is Eli the weird. (QED) Where are my marbles?"
|
||||
]
|
||||
],
|
||||
"UIA" : [
|
||||
|
@ -46,7 +46,7 @@
|
|||
"property",
|
||||
"Description",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED) Where are my marbles?"
|
||||
"My name is Eli the weird. (QED) Where are my marbles?"
|
||||
]
|
||||
]
|
||||
},
|
||||
|
@ -62,7 +62,10 @@
|
|||
</head>
|
||||
<body>
|
||||
<p>This test examines the ARIA properties for Description from content of describedby element which is hidden.</p>
|
||||
<div>
|
||||
<style>
|
||||
.hidden { display: none; }
|
||||
</style>
|
||||
<div>
|
||||
<input id="test" type="text" aria-labelledby="lbl1 lbl2" aria-describedby="descId" />
|
||||
<span>
|
||||
<span aria-hidden="true" id="lbl1">Important</span>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
"property",
|
||||
"name",
|
||||
"is",
|
||||
"Choose your language. English"
|
||||
"Choose your language."
|
||||
]
|
||||
],
|
||||
"AXAPI" : [
|
||||
|
@ -30,7 +30,7 @@
|
|||
"property",
|
||||
"AXDescription",
|
||||
"is",
|
||||
"Choose your language. English"
|
||||
"Choose your language."
|
||||
]
|
||||
],
|
||||
"IAccessible2" : [
|
||||
|
@ -38,7 +38,7 @@
|
|||
"property",
|
||||
"accName",
|
||||
"is",
|
||||
"Choose your language. English"
|
||||
"Choose your language."
|
||||
]
|
||||
],
|
||||
"UIA" : [
|
||||
|
@ -46,7 +46,7 @@
|
|||
"property",
|
||||
"Name",
|
||||
"is",
|
||||
"Choose your language. English"
|
||||
"Choose your language."
|
||||
]
|
||||
]
|
||||
},
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
"property",
|
||||
"name",
|
||||
"is",
|
||||
"246810"
|
||||
"2 4 6 8 10"
|
||||
]
|
||||
],
|
||||
"AXAPI" : [
|
||||
|
@ -30,7 +30,7 @@
|
|||
"property",
|
||||
"AXDescription",
|
||||
"is",
|
||||
"246810"
|
||||
"2 4 6 8 10"
|
||||
]
|
||||
],
|
||||
"IAccessible2" : [
|
||||
|
@ -38,7 +38,7 @@
|
|||
"property",
|
||||
"accName",
|
||||
"is",
|
||||
"246810"
|
||||
"2 4 6 8 10"
|
||||
]
|
||||
],
|
||||
"UIA" : [
|
||||
|
@ -46,7 +46,7 @@
|
|||
"property",
|
||||
"Name",
|
||||
"is",
|
||||
"246810"
|
||||
"2 4 6 8 10"
|
||||
]
|
||||
]
|
||||
},
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
"property",
|
||||
"name",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED) Where are my marbles?"
|
||||
"My name is Eli the weird. (QED) Where are my marbles?"
|
||||
]
|
||||
],
|
||||
"AXAPI" : [
|
||||
|
@ -30,7 +30,7 @@
|
|||
"property",
|
||||
"AXDescription",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED) Where are my marbles?"
|
||||
"My name is Eli the weird. (QED) Where are my marbles?"
|
||||
]
|
||||
],
|
||||
"IAccessible2" : [
|
||||
|
@ -38,7 +38,7 @@
|
|||
"property",
|
||||
"accName",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED) Where are my marbles?"
|
||||
"My name is Eli the weird. (QED) Where are my marbles?"
|
||||
]
|
||||
],
|
||||
"UIA" : [
|
||||
|
@ -46,7 +46,7 @@
|
|||
"property",
|
||||
"Name",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED) Where are my marbles?"
|
||||
"My name is Eli the weird. (QED) Where are my marbles?"
|
||||
]
|
||||
]
|
||||
},
|
||||
|
@ -62,7 +62,10 @@
|
|||
</head>
|
||||
<body>
|
||||
<p>This test examines the ARIA properties for Name from content.</p>
|
||||
<div id="test" role="link" tabindex="0">
|
||||
<style>
|
||||
.hidden { display: none; }
|
||||
</style>
|
||||
<div id="test" role="link" tabindex="0">
|
||||
<span aria-hidden="true"><i> Hello, </i></span>
|
||||
<span>My</span> name is
|
||||
<div><img src="file.jpg" title="Bryan" alt="" role="presentation" /></div>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
"property",
|
||||
"name",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED) Where are my marbles?"
|
||||
"My name is Eli the weird. (QED) Where are my marbles?"
|
||||
]
|
||||
],
|
||||
"AXAPI" : [
|
||||
|
@ -30,7 +30,7 @@
|
|||
"property",
|
||||
"AXDescription",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED) Where are my marbles?"
|
||||
"My name is Eli the weird. (QED) Where are my marbles?"
|
||||
]
|
||||
],
|
||||
"IAccessible2" : [
|
||||
|
@ -38,7 +38,7 @@
|
|||
"property",
|
||||
"accName",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED) Where are my marbles?"
|
||||
"My name is Eli the weird. (QED) Where are my marbles?"
|
||||
]
|
||||
],
|
||||
"UIA" : [
|
||||
|
@ -46,7 +46,7 @@
|
|||
"property",
|
||||
"Name",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED) Where are my marbles?"
|
||||
"My name is Eli the weird. (QED) Where are my marbles?"
|
||||
]
|
||||
]
|
||||
},
|
||||
|
@ -62,7 +62,10 @@
|
|||
</head>
|
||||
<body>
|
||||
<p>This test examines the ARIA properties for Name from content of label.</p>
|
||||
<input type="text" id="test" />
|
||||
<style>
|
||||
.hidden { display: none; }
|
||||
</style>
|
||||
<input type="text" id="test" />
|
||||
<label for="test" id="label">
|
||||
<span aria-hidden="true"><i> Hello, </i></span>
|
||||
<span>My</span> name is
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
"property",
|
||||
"name",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED) Where are my marbles?"
|
||||
"My name is Eli the weird. (QED) Where are my marbles?"
|
||||
]
|
||||
],
|
||||
"AXAPI" : [
|
||||
|
@ -30,7 +30,7 @@
|
|||
"property",
|
||||
"AXDescription",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED) Where are my marbles?"
|
||||
"My name is Eli the weird. (QED) Where are my marbles?"
|
||||
]
|
||||
],
|
||||
"IAccessible2" : [
|
||||
|
@ -38,7 +38,7 @@
|
|||
"property",
|
||||
"accName",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED) Where are my marbles?"
|
||||
"My name is Eli the weird. (QED) Where are my marbles?"
|
||||
]
|
||||
],
|
||||
"UIA" : [
|
||||
|
@ -46,7 +46,7 @@
|
|||
"property",
|
||||
"Name",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED) Where are my marbles?"
|
||||
"My name is Eli the weird. (QED) Where are my marbles?"
|
||||
]
|
||||
]
|
||||
},
|
||||
|
@ -62,7 +62,10 @@
|
|||
</head>
|
||||
<body>
|
||||
<p>This test examines the ARIA properties for Name from content of labelledby element.</p>
|
||||
<input id="test" type="text" aria-labelledby="lblId" />
|
||||
<style>
|
||||
.hidden { display: none; }
|
||||
</style>
|
||||
<input id="test" type="text" aria-labelledby="lblId" />
|
||||
<div id="lblId" >
|
||||
<span aria-hidden="true"><i> Hello, </i></span>
|
||||
<span>My</span> name is
|
||||
|
|
|
@ -62,7 +62,10 @@
|
|||
</head>
|
||||
<body>
|
||||
<p>This test examines the ARIA properties for Name from content of labelledby elements one of which is hidden.</p>
|
||||
<div>
|
||||
<style>
|
||||
.hidden { display: none; }
|
||||
</style>
|
||||
<div>
|
||||
<input id="test" type="text" aria-labelledby="lbl1 lbl2" aria-describedby="descId" />
|
||||
<span>
|
||||
<span aria-hidden="true" id="lbl1">Important</span>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
"property",
|
||||
"name",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED)"
|
||||
"My name is Eli the weird. (QED)"
|
||||
]
|
||||
],
|
||||
"AXAPI" : [
|
||||
|
@ -30,7 +30,7 @@
|
|||
"property",
|
||||
"AXDescription",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED)"
|
||||
"My name is Eli the weird. (QED)"
|
||||
]
|
||||
],
|
||||
"IAccessible2" : [
|
||||
|
@ -38,7 +38,7 @@
|
|||
"property",
|
||||
"accName",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED)"
|
||||
"My name is Eli the weird. (QED)"
|
||||
]
|
||||
],
|
||||
"UIA" : [
|
||||
|
@ -46,7 +46,7 @@
|
|||
"property",
|
||||
"Name",
|
||||
"is",
|
||||
"My name is Garaventa the weird. (QED)"
|
||||
"My name is Eli the weird. (QED)"
|
||||
]
|
||||
]
|
||||
},
|
||||
|
@ -62,7 +62,10 @@
|
|||
</head>
|
||||
<body>
|
||||
<p>This test examines the ARIA properties for Name link-mixed-content.</p>
|
||||
<div id="test" role="link" tabindex="0">
|
||||
<style>
|
||||
.hidden { display: none; }
|
||||
</style>
|
||||
<div id="test" role="link" tabindex="0">
|
||||
<span aria-hidden="true"><i> Hello, </i></span>
|
||||
<span>My</span> name is
|
||||
<div><img src="file.jpg" title="Bryan" alt="" role="presentation" /></div>
|
||||
|
|
Загрузка…
Ссылка в новой задаче