Fix keypad issue when ime context transit to another context
[framework/web/webkit-efl.git] / LayoutTests / accessibility / aria-label.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 <input aria-label="aria label" type="text" size=20>
8 <a href="#" aria-label="aria link">test</a>
9 <p id="description"></p>
10 <div id="console"></div>
11
12 <script>
13
14     description("This tests that the aria-label attribute works. The input and the A tag should return the appropriate description.");
15
16     if (window.accessibilityController) {
17
18           var body = document.getElementById("body");
19           body.focus();
20           var obj = accessibilityController.focusedElement.childAtIndex(0).childAtIndex(0);
21           var succeeded = obj.description == "AXDescription: aria label";
22           shouldBe("succeeded", "true");
23
24           obj = accessibilityController.focusedElement.childAtIndex(0).childAtIndex(1);
25           succeeded = obj.description == "AXDescription: aria link";
26           shouldBe("succeeded", "true");
27     }
28
29 </script>
30
31 <script src="../fast/js/resources/js-test-post.js"></script>
32 </body>
33 </html>