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 <input id="text1" type="text" value="Value"> | 9 <input id="text1" type="text" value="Value"> |
10 <input id="checkbox1" type="checkbox" checked> | 10 <input id="checkbox1" type="checkbox" checked> |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 check("combobox1", true); | 55 check("combobox1", true); |
56 check("listbox1", true); | 56 check("listbox1", true); |
57 check("textarea1", false); | 57 check("textarea1", false); |
58 check("focusable1", true); | 58 check("focusable1", true); |
59 check("heading1", true); | 59 check("heading1", true); |
60 check("aria-button1", true); | 60 check("aria-button1", true); |
61 check("aria-togglebutton1", true); | 61 check("aria-togglebutton1", true); |
62 check("aria-link1", true); | 62 check("aria-link1", true); |
63 check("contenteditable_root1", false); | 63 check("contenteditable_root1", false); |
64 check("contenteditable_button1", false); | 64 check("contenteditable_button1", false); |
| 65 |
| 66 // An additional check for a mock AX object. |
| 67 var axSelect = accessibilityController.accessibleElementById('combobox1'); |
| 68 var axMenuListPopup = axSelect.childAtIndex(0); |
| 69 shouldBe("axMenuListPopup.role", "\"AXRole: AXMenuListPopup\""); |
| 70 shouldBe("axMenuListPopup.isReadOnly", "true"); |
65 } | 71 } |
66 | 72 |
67 </script> | 73 </script> |
68 | 74 |
69 </body> | 75 </body> |
70 </html> | 76 </html> |
OLD | NEW |