Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / aria-text-role.html
blob637355f63d5e62198b3f8b129e94620c5dc276fa
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test.js"></script>
5 </head>
6 <body id="body">
8 <div id="textrole" tabindex=0 role="text" aria-label="all at once">
9 <b>hello world</b>
10 <i>this is a test</i>
11 <a href="#">more test</a>
12 </div>
14 <p id="description"></p>
15 <div id="console"></div>
17 <script>
19 description("This tests that you can set an ARIA text role and that it will not have children through hit testing");
21 if (window.accessibilityController) {
23 document.getElementById("textrole").focus();
24 var textrole = accessibilityController.focusedElement;
25 shouldBe("textrole.role", "'AXRole: AXStaticText'");
26 shouldBe("textrole.stringValue", "'AXValue: all at once'");
28 // now check the hit-testing
29 var x = textrole.clickPointX;
30 var y = textrole.clickPointY;
31 shouldBe("textrole.elementAtPoint(x, y).isEqual(textrole)", "true");
34 </script>
36 </body>
37 </html>