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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/non-data-table-cell-title-ui-element.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 id="body"> 6 <body id="body">
7 7
8 <!-- This test makes sure that tables that are not exposed as tables do not have title ui elements incorrectly set --> 8 <!-- This test makes sure that tables that are not exposed as tables do not have title ui elements incorrectly set -->
9 9
10 <TABLE> 10 <TABLE>
(...skipping 13 matching lines...) Expand all
24 24
25 25
26 <script> 26 <script>
27 if (window.accessibilityController) { 27 if (window.accessibilityController) {
28 var result = document.getElementById("result"); 28 var result = document.getElementById("result");
29 29
30 var pass = document.getElementById("body"); 30 var pass = document.getElementById("body");
31 body.focus(); 31 body.focus();
32 // get the <th>skip</th> element 32 // get the <th>skip</th> element
33 var group = accessibilityController.focusedElement.childAtIndex(5); 33 var group = accessibilityController.focusedElement.childAtIndex(5);
34 var titleUI = group.deprecatedTitleUIElement(); 34 var titleUI = group.nameElementAtIndex(0);
35 var allAttributes = ""; 35 var allAttributes = "";
36 if (titleUI) 36 if (titleUI)
37 allAttributes = titleUI.allAttributes(); 37 allAttributes = titleUI.allAttributes();
38 38
39 // verify it has no title ui element 39 // verify it has no title ui element
40 if (!allAttributes) { 40 if (!allAttributes) {
41 result.innerText += "Test passed\n"; 41 result.innerText += "Test passed\n";
42 } 42 }
43 else { 43 else {
44 result.innerText += "Test failed\n"; 44 result.innerText += "Test failed\n";
45 } 45 }
46 } 46 }
47 </script> 47 </script>
48 </body> 48 </body>
49 </html> 49 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698