JS Test Harness: Remove more link tags
[WebKit-https.git] / LayoutTests / accessibility / aria-text-role.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script>
5 var successfullyParsed = false;
6 </script>
7 <script src="../fast/js/resources/js-test-pre.js"></script>
8 </head>
9 <body id="body">
10
11 <div id="textrole" tabindex=0 role="text" aria-label="all at once">
12 <b>hello world</b>
13 <i>this is a test</i>
14 <a href="#">more test</a>
15 </div>
16
17 <p id="description"></p>
18 <div id="console"></div>
19
20 <script>
21
22     description("This tests that you can set an ARIA text role and that it will not have children through hit testing");
23
24     if (window.accessibilityController) {
25
26         document.getElementById("textrole").focus();
27         var textrole = accessibilityController.focusedElement;
28         shouldBe("textrole.role", "'AXRole: AXStaticText'");
29         shouldBe("textrole.stringValue", "'AXValue: all at once'");
30
31         // now check the hit-testing
32         var x = textrole.clickPointX;
33         var y = textrole.clickPointY;
34         shouldBe("textrole.elementAtPoint(x, y).isEqual(textrole)", "true");
35     }
36
37     successfullyParsed = true;
38 </script>
39
40 <script src="../fast/js/resources/js-test-post.js"></script>
41 </body>
42 </html>