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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/aria-tab-roles.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 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body id="body"> 6 <body id="body">
7 7
8 <ul id="tablist_1" role="tablist"> 8 <ul id="tablist_1" role="tablist">
9 <li id="tab_1" role="tab" tabindex="0" class="">Crust</li> 9 <li id="tab_1" role="tab" tabindex="0" class="">Crust</li>
10 <li id="tab_2" role="tab" tabindex="0" class="">Veges</li> 10 <li id="tab_2" role="tab" tabindex="0" class="">Veges</li>
(...skipping 16 matching lines...) Expand all
27 var body = document.getElementById("body"); 27 var body = document.getElementById("body");
28 body.focus(); 28 body.focus();
29 29
30 var tabList = accessibilityController.focusedElement.childAtIndex(0); 30 var tabList = accessibilityController.focusedElement.childAtIndex(0);
31 var tab1 = tabList.childAtIndex(0); 31 var tab1 = tabList.childAtIndex(0);
32 var tab2 = tabList.childAtIndex(1); 32 var tab2 = tabList.childAtIndex(1);
33 var tabPanel = accessibilityController.focusedElement.childAtIndex(1); 33 var tabPanel = accessibilityController.focusedElement.childAtIndex(1);
34 34
35 debug("tabList.role = " + tabList.role); 35 debug("tabList.role = " + tabList.role);
36 debug("tab1.role = " + tab1.role); 36 debug("tab1.role = " + tab1.role);
37 shouldBe("tab1.deprecatedTitle", "'AXTitle: Crust'"); 37 shouldBe("tab1.name", "'Crust'");
38 shouldBe("tab1.childrenCount", "0"); 38 shouldBe("tab1.childrenCount", "0");
39 debug("tab2.role = " + tab2.role); 39 debug("tab2.role = " + tab2.role);
40 shouldBe("tab2.deprecatedTitle", "'AXTitle: Veges'"); 40 shouldBe("tab2.name", "'Veges'");
41 debug("tabPanel.role = " + tabPanel.role); 41 debug("tabPanel.role = " + tabPanel.role);
42 debug("tabPanel.subrole = " + tabPanel.subrole); 42 debug("tabPanel.subrole = " + tabPanel.subrole);
43 } 43 }
44 44
45 </script> 45 </script>
46 46
47 </body> 47 </body>
48 </html> 48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698