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 <a id="link1" href="#">Link</a> | 7 <a id="link1" href="#">Link</a> |
8 <button id="button1">Button</button> | 8 <button id="button1">Button</button> |
9 <button id="labeled-button1" aria-label="Label">Button</button> | 9 <button id="labeled-button1" aria-label="Label">Button</button> |
10 <button id="button-with-title1" title="Title">Button</button> | 10 <button id="button-with-title1" title="Title">Button</button> |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 window.axElement1 = accessibilityController.focusedElement; | 66 window.axElement1 = accessibilityController.focusedElement; |
67 | 67 |
68 debug(id2); | 68 debug(id2); |
69 window.element2 = document.getElementById(id2); | 69 window.element2 = document.getElementById(id2); |
70 element2.focus(); | 70 element2.focus(); |
71 shouldBe("document.activeElement == element2", "true"); | 71 shouldBe("document.activeElement == element2", "true"); |
72 window.axElement2 = accessibilityController.focusedElement; | 72 window.axElement2 = accessibilityController.focusedElement; |
73 | 73 |
74 shouldBe("axElement2.role", "axElement1.role"); | 74 shouldBe("axElement2.role", "axElement1.role"); |
75 shouldBe("axElement2.roleDescription", "axElement1.roleDescription"); | 75 shouldBe("axElement2.roleDescription", "axElement1.roleDescription"); |
76 shouldBe("axElement2.deprecatedTitle", "axElement1.deprecatedTitle"); | 76 shouldBe("axElement2.name", "axElement1.name"); |
77 shouldBe("axElement2.deprecatedDescription", "axElement1.deprecatedDescr
iption"); | 77 shouldBe("axElement2.name", "axElement1.name"); |
78 shouldBe("axElement2.deprecatedHelpText", "axElement1.deprecatedHelpText
"); | 78 shouldBe("axElement2.description", "axElement1.deprecatedHelpText"); |
79 shouldBe("axElement2.stringValue", "axElement1.stringValue"); | 79 shouldBe("axElement2.stringValue", "axElement1.stringValue"); |
80 shouldBe("axElement2.isEnabled", "axElement1.isEnabled"); | 80 shouldBe("axElement2.isEnabled", "axElement1.isEnabled"); |
81 shouldBe("axElement2.isRequired", "axElement1.isRequired"); | 81 shouldBe("axElement2.isRequired", "axElement1.isRequired"); |
82 shouldBe("axElement2.isChecked", "axElement1.isChecked"); | 82 shouldBe("axElement2.isChecked", "axElement1.isChecked"); |
83 shouldBe("axElement2.intValue", "axElement1.intValue"); | 83 shouldBe("axElement2.intValue", "axElement1.intValue"); |
84 shouldBe("axElement2.minValue", "axElement1.minValue"); | 84 shouldBe("axElement2.minValue", "axElement1.minValue"); |
85 shouldBe("axElement2.maxValue", "axElement1.maxValue"); | 85 shouldBe("axElement2.maxValue", "axElement1.maxValue"); |
86 debug(""); | 86 debug(""); |
87 } | 87 } |
88 | 88 |
(...skipping 17 matching lines...) Expand all Loading... |
106 check("aria-enabledbutton1", "aria-enabledbutton2"); | 106 check("aria-enabledbutton1", "aria-enabledbutton2"); |
107 check("aria-requiredbutton1", "aria-requiredbutton2"); | 107 check("aria-requiredbutton1", "aria-requiredbutton2"); |
108 check("aria-togglebutton1", "aria-togglebutton2"); | 108 check("aria-togglebutton1", "aria-togglebutton2"); |
109 check("aria-link1", "aria-link2"); | 109 check("aria-link1", "aria-link2"); |
110 } | 110 } |
111 | 111 |
112 </script> | 112 </script> |
113 | 113 |
114 </body> | 114 </body> |
115 </html> | 115 </html> |
OLD | NEW |