| 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> |
| 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"> |
| (...skipping 63 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.title)", "collapseWhitespace(axE
lement1.title)"); | 84 shouldBe("collapseWhitespace(axElement2.deprecatedTitle)", "collapseWhit
espace(axElement1.deprecatedTitle)"); |
| 85 shouldBe("axElement2.titleUIElement", "axElement1.titleUIElement"); | 85 shouldBe("axElement2.deprecatedTitleUIElement", "axElement1.deprecatedTi
tleUIElement"); |
| 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 } | 102 } |
| 103 | 103 |
| 104 </script> | 104 </script> |
| 105 | 105 |
| 106 </body> | 106 </body> |
| 107 </html> | 107 </html> |
| OLD | NEW |