OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script src="../resources/js-test.js"></script> | 4 <script src="../resources/js-test.js"></script> |
5 | 5 |
6 <div> | 6 <div id="container"> |
7 <label id="nothing1">Nothing</label> | 7 <label id="nothing1">Nothing</label> |
8 <label id="text_label1"> | 8 <label id="text_label1"> |
9 Text | 9 Text |
10 <input id="text1" type="text"> | 10 <input id="text1" type="text"> |
11 </label> | 11 </label> |
12 <label id="check_label1"> | 12 <label id="check_label1"> |
13 Checkbox | 13 Checkbox |
14 <input id="check1" type="checkbox"> | 14 <input id="check1" type="checkbox"> |
15 </label> | 15 </label> |
16 <label id="radio_label1"> | 16 <label id="radio_label1"> |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 debug("Checking accessibility properties for ids: " + id1 + ", " + id2); | 74 debug("Checking accessibility properties for ids: " + id1 + ", " + id2); |
75 window.axElement1 = accessibilityController.accessibleElementById(id1); | 75 window.axElement1 = accessibilityController.accessibleElementById(id1); |
76 window.axElement2 = accessibilityController.accessibleElementById(id2); | 76 window.axElement2 = accessibilityController.accessibleElementById(id2); |
77 | 77 |
78 if (axElement1 == null && axElement2 == null) { | 78 if (axElement1 == null && axElement2 == null) { |
79 shouldBe("axElement1 == null && axElement2 == null", "true"); | 79 shouldBe("axElement1 == null && axElement2 == null", "true"); |
80 debug(""); | 80 debug(""); |
81 return; | 81 return; |
82 } | 82 } |
83 shouldBe("axElement2.role", "axElement1.role"); | 83 shouldBe("axElement2.role", "axElement1.role"); |
84 shouldBe("collapseWhitespace(axElement2.deprecatedTitle)", "collapseWhit
espace(axElement1.deprecatedTitle)"); | 84 shouldBe("collapseWhitespace(axElement2.name)", "collapseWhitespace(axEl
ement1.name)"); |
85 shouldBe("axElement2.deprecatedTitleUIElement", "axElement1.deprecatedTi
tleUIElement"); | 85 shouldBe("axElement2.nameElementCount()", "axElement1.nameElementCount()
"); |
86 debug(""); | 86 debug(""); |
87 } | 87 } |
88 | 88 |
89 check("nothing1", "nothing2"); | 89 check("nothing1", "nothing2"); |
90 check("text_label1", "text_label2"); | 90 check("text_label1", "text_label2"); |
91 check("text1", "text2"); | 91 check("text1", "text2"); |
92 check("check_label1", "check_label2"); | 92 check("check_label1", "check_label2"); |
93 check("check1", "check2"); | 93 check("check1", "check2"); |
94 check("radio_label1", "radio_label2"); | 94 check("radio_label1", "radio_label2"); |
95 check("radio1", "radio2"); | 95 check("radio1", "radio2"); |
96 check("slider_label1", "slider_label2"); | 96 check("slider_label1", "slider_label2"); |
97 check("slider1", "slider2"); | 97 check("slider1", "slider2"); |
98 check("list_label1", "list_label2"); | 98 check("list_label1", "list_label2"); |
99 check("list1", "list2"); | 99 check("list1", "list2"); |
100 check("label_for1", "label_for2"); | 100 check("label_for1", "label_for2"); |
101 check("text_for1", "text_for2"); | 101 check("text_for1", "text_for2"); |
| 102 |
| 103 document.getElementById("container").style.display = "none"; |
102 } | 104 } |
103 | 105 |
104 </script> | 106 </script> |
105 | 107 |
106 </body> | 108 </body> |
107 </html> | 109 </html> |
OLD | NEW |