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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/aria-labelledby-stay-within.html

Issue 1417213006: Switch all LayoutTests to use new AX name calculation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix canvas-fallback-content-labels-expected.txt Created 5 years, 1 month 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 <html> 1 <html>
2 <script> 2 <script>
3 if (window.testRunner) 3 if (window.testRunner)
4 testRunner.dumpAsText(); 4 testRunner.dumpAsText();
5 </script> 5 </script>
6 <body> 6 <body>
7 7
8 <!-- this test makes sure that the labeled by aria attributes does not start climbing out of itself and 8 <!-- this test makes sure that the labeled by aria attributes does not start climbing out of itself and
9 appending on other elements as its own description --> 9 appending on other elements as its own description -->
10 10
(...skipping 14 matching lines...) Expand all
25 <li id="item7" role="listitem" tabindex="-1">Item Seven</li> 25 <li id="item7" role="listitem" tabindex="-1">Item Seven</li>
26 </ul> 26 </ul>
27 27
28 <div id="result"></div> 28 <div id="result"></div>
29 29
30 <script> 30 <script>
31 if (window.accessibilityController) { 31 if (window.accessibilityController) {
32 var labeledItem = document.getElementById("rep"); 32 var labeledItem = document.getElementById("rep");
33 labeledItem.focus(); 33 labeledItem.focus();
34 var result = document.getElementById("result"); 34 var result = document.getElementById("result");
35 if ( accessibilityController.focusedElement.deprecatedDescription == "AXDescription: Reply Item Five" ) { 35 if ( accessibilityController.focusedElement.name == "Reply Item Five " ) {
36 result.innerText = "Passed"; 36 result.innerText = "Passed";
37 } 37 }
38 else { 38 else {
39 result.innerText = "Failed. Result ==" + accessibilityController. focusedElement.deprecatedDescription + "=="; 39 result.innerText = "Failed. Result ==" + accessibilityController. focusedElement.name + "==";
40 } 40 }
41 } 41 }
42 </script> 42 </script>
43 </body> 43 </body>
44 </html> 44 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698