Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(596)

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/name-calc-native-markup-input-buttons.html

Issue 1939303002: Enable accessible name of a control to include multiple <label> elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <script src="../resources/testharness.js"></script> 2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../resources/testharnessreport.js"></script>
4 4
5 <style> 5 <style>
6 .hideAllContainers .container { 6 .hideAllContainers .container {
7 display: none; 7 display: none;
8 } 8 }
9 </style> 9 </style>
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 <label>button-label-6<input id="button6" type="button"></label> 72 <label>button-label-6<input id="button6" type="button"></label>
73 </div> 73 </div>
74 74
75 <script> 75 <script>
76 test(function(t) { 76 test(function(t) {
77 var axButtonInput6 = accessibilityController.accessibleElementById("button6" ); 77 var axButtonInput6 = accessibilityController.accessibleElementById("button6" );
78 assert_equals(axButtonInput6.name, "button-label-6"); 78 assert_equals(axButtonInput6.name, "button-label-6");
79 assert_equals(axButtonInput6.nameFrom, "relatedElement"); 79 assert_equals(axButtonInput6.nameFrom, "relatedElement");
80 }, "Input button with label wrapped and no value"); 80 }, "Input button with label wrapped and no value");
81 </script> 81 </script>
82 82 <!--
aboxhall 2016/05/13 20:19:16 Commented out?
dmazzoni 2016/05/13 22:22:42 Done.
83 <div class="container"> 83 <div class="container">
84 <input id="button7" type="button" value="button-value7"> 84 <input id="button7" type="button" value="button-value7">
85 <label for="button7">button-label-7</label> 85 <label for="button7">button-label-7</label>
86 </div> 86 </div>
87 87
88 <script> 88 <script>
89 test(function(t) { 89 test(function(t) {
90 var axButtonInput7 = accessibilityController.accessibleElementById("button7" ); 90 var axButtonInput7 = accessibilityController.accessibleElementById("button7" );
91 assert_equals(axButtonInput7.name, "button-label-7"); 91 assert_equals(axButtonInput7.name, "button-label-7");
92 assert_equals(axButtonInput7.nameFrom, "relatedElement"); 92 assert_equals(axButtonInput7.nameFrom, "relatedElement");
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 <input id="image-input5" type="image" src="resources/cake.png" title="image- input-title5"> 220 <input id="image-input5" type="image" src="resources/cake.png" title="image- input-title5">
221 </div> 221 </div>
222 222
223 <script> 223 <script>
224 test(function(t) { 224 test(function(t) {
225 var axImageInput5 = accessibilityController.accessibleElementById("image-inp ut5"); 225 var axImageInput5 = accessibilityController.accessibleElementById("image-inp ut5");
226 assert_equals(axImageInput5.name, "Submit"); 226 assert_equals(axImageInput5.name, "Submit");
227 assert_equals(axImageInput5.nameFrom, "value"); 227 assert_equals(axImageInput5.nameFrom, "value");
228 }, "Image input with title only"); 228 }, "Image input with title only");
229 </script> 229 </script>
230 230 -->
231 <script> 231 <script>
232 if (window.testRunner) 232 if (window.testRunner)
233 document.body.className = "hideAllContainers"; 233 document.body.className = "hideAllContainers";
234 </script> 234 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698