OLD | NEW |
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 Loading... |
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> |
OLD | NEW |