Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / chromium-only-roles.html
blob9185e13cc9f2b29607d8582d99fc5951bee52b68
1 <!DOCTYPE HTML>
2 <html>
3 <body>
4 <script src="../resources/js-test.js"></script>
6 <div id="container" contentEditable>
7 <hr aria-label="hr">
8 <p aria-label="p"></p>
9 <label aria-label="label"></label>
10 <form aria-label="form"></form>
11 <div aria-label="div"></div>
12 </div>
14 <div id="console"></div>
15 <script>
16 description("This test makes sure that a generic focusable div can get accessibility focus.");
18 if (window.testRunner && window.accessibilityController) {
19 window.testRunner.dumpAsText();
21 document.getElementById('container').focus();
22 var axContainer = accessibilityController.focusedElement;
24 shouldBe('axContainer.childAtIndex(0).role', '"AXRole: AXSplitter"');
25 shouldBe('axContainer.childAtIndex(1).role', '"AXRole: AXParagraph"');
26 shouldBe('axContainer.childAtIndex(2).role', '"AXRole: AXLabel"');
27 shouldBe('axContainer.childAtIndex(3).role', '"AXRole: AXForm"');
28 shouldBe('axContainer.childAtIndex(4).role', '"AXRole: AXDiv"');
31 </script>
33 </body>
34 </html>