| 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 <style> | 6 <style> |
| 7 myelement { | 7 myelement { |
| 8 display: block; | 8 display: block; |
| 9 } | 9 } |
| 10 </style> | 10 </style> |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 var comboBoxRole = (testRunner.platformName == "gtk" || testRunner.platformN
ame == "efl") ? "AXRole: AXComboBox" : "AXRole: AXPopUpButton"; | 55 var comboBoxRole = (testRunner.platformName == "gtk" || testRunner.platformN
ame == "efl") ? "AXRole: AXComboBox" : "AXRole: AXPopUpButton"; |
| 56 | 56 |
| 57 // Check rendered controls. | 57 // Check rendered controls. |
| 58 check("link1", "AXRole: AXLink"); | 58 check("link1", "AXRole: AXLink"); |
| 59 check("button1", "AXRole: AXButton"); | 59 check("button1", "AXRole: AXButton"); |
| 60 check("text1", "AXRole: AXTextField"); | 60 check("text1", "AXRole: AXTextField"); |
| 61 check("checkbox1", "AXRole: AXCheckBox"); | 61 check("checkbox1", "AXRole: AXCheckBox"); |
| 62 check("radio1", "AXRole: AXRadioButton"); | 62 check("radio1", "AXRole: AXRadioButton"); |
| 63 check("submit1", "AXRole: AXButton"); | 63 check("submit1", "AXRole: AXButton"); |
| 64 check("combobox1", comboBoxRole); | 64 check("combobox1", comboBoxRole); |
| 65 check("focusable1", "AXRole: AXGroup"); | 65 check("focusable1", "AXRole: AXGenericContainer"); |
| 66 check("aria-button1", "AXRole: AXButton"); | 66 check("aria-button1", "AXRole: AXButton"); |
| 67 check("aria-link1", "AXRole: AXLink"); | 67 check("aria-link1", "AXRole: AXLink"); |
| 68 | 68 |
| 69 // Check unrendered controls inside a canvas. | 69 // Check unrendered controls inside a canvas. |
| 70 check("link2", "AXRole: AXLink"); | 70 check("link2", "AXRole: AXLink"); |
| 71 check("button2", "AXRole: AXButton"); | 71 check("button2", "AXRole: AXButton"); |
| 72 check("text2", "AXRole: AXTextField"); | 72 check("text2", "AXRole: AXTextField"); |
| 73 check("checkbox2", "AXRole: AXCheckBox"); | 73 check("checkbox2", "AXRole: AXCheckBox"); |
| 74 check("radio2", "AXRole: AXRadioButton"); | 74 check("radio2", "AXRole: AXRadioButton"); |
| 75 check("submit2", "AXRole: AXButton"); | 75 check("submit2", "AXRole: AXButton"); |
| 76 check("combobox2", comboBoxRole); | 76 check("combobox2", comboBoxRole); |
| 77 check("focusable2", "AXRole: AXGroup"); | 77 check("focusable2", "AXRole: AXGenericContainer"); |
| 78 check("aria-button2", "AXRole: AXButton"); | 78 check("aria-button2", "AXRole: AXButton"); |
| 79 check("aria-link2", "AXRole: AXLink"); | 79 check("aria-link2", "AXRole: AXLink"); |
| 80 | 80 |
| 81 // Check that the role is updated when the element changes. | 81 // Check that the role is updated when the element changes. |
| 82 document.getElementById('focusable1').setAttribute('role', 'button'); | 82 document.getElementById('focusable1').setAttribute('role', 'button'); |
| 83 check("focusable1", "AXRole: AXButton"); | 83 check("focusable1", "AXRole: AXButton"); |
| 84 document.getElementById('focusable2').setAttribute('role', 'button'); | 84 document.getElementById('focusable2').setAttribute('role', 'button'); |
| 85 check("focusable2", "AXRole: AXButton"); | 85 check("focusable2", "AXRole: AXButton"); |
| 86 } | 86 } |
| 87 | 87 |
| 88 </script> | 88 </script> |
| 89 | 89 |
| 90 </body> | 90 </body> |
| 91 </html> | 91 </html> |
| OLD | NEW |