Fix keypad issue when ime context transit to another context
[framework/web/webkit-efl.git] / LayoutTests / accessibility / aria-text-role.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../fast/js/resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7
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>
13
14 <p id="description"></p>
15 <div id="console"></div>
16
17 <script>
18
19     description("This tests that you can set an ARIA text role and that it will not have children through hit testing");
20
21     if (window.accessibilityController) {
22
23         document.getElementById("textrole").focus();
24         var textrole = accessibilityController.focusedElement;
25         shouldBe("textrole.role", "'AXRole: AXStaticText'");
26         shouldBe("textrole.stringValue", "'AXValue: all at once'");
27
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");
32     }
33
34 </script>
35
36 <script src="../fast/js/resources/js-test-post.js"></script>
37 </body>
38 </html>