| OLD | NEW |
| (Empty) |
| 1 <html aria-label="Test"> | |
| 2 <head> | |
| 3 <script src="../fast/js/resources/js-test-pre.js"></script> | |
| 4 </head> | |
| 5 <body id="body"> | |
| 6 | |
| 7 <p role="button" id="description"></p> | |
| 8 <div id="console"></div> | |
| 9 | |
| 10 <script> | |
| 11 if (window.accessibilityController) { | |
| 12 description("This test checks that the <html> element is not the AX
tree (ever), even when it has an aria attribute. "); | |
| 13 | |
| 14 var startElement = accessibilityController.accessibleElementById("de
scription"); | |
| 15 debug("The start element should be a button."); | |
| 16 shouldBe("startElement.role", "'AXRole: AXButton'"); | |
| 17 | |
| 18 debug("\nThe parent should be the web area."); | |
| 19 shouldBe("startElement.parentElement().role", "'AXRole: AXWebArea'")
; | |
| 20 } else { | |
| 21 debug("This test requires accessibilityController.") | |
| 22 } | |
| 23 </script> | |
| 24 | |
| 25 <script src="../fast/js/resources/js-test-post.js"></script> | |
| 26 | |
| 27 </body> | |
| 28 </html> | |
| OLD | NEW |