Fix keypad issue when ime context transit to another context
[framework/web/webkit-efl.git] / LayoutTests / accessibility / visible-elements.html
1 <html>
2 <script>
3     if (window.testRunner)
4         testRunner.dumpAsText();
5
6 </script>
7 <body id="body">
8     <!-- This test ensures that a plugin that is not accessible, will not appear in the AX hierachy-->
9
10     <a href="#a">more</a><BR>
11     <div id="hiddenDiv" style="visibility: hidden; left: 0px; "><a href="#b">hello</a></div>
12     
13     <div id="result"></div>
14
15      
16     <script>
17         if (window.accessibilityController) {
18             var result = document.getElementById("result");
19
20             var body = document.getElementById("body");
21             body.focus();
22             var links1 = accessibilityController.focusedElement.attributesOfDocumentLinks();
23  
24             // toggle the div
25             var divElement = document.getElementById("hiddenDiv");
26             divElement.style.visibility = "visible";
27
28             accessibilityController.focusedElement.attributesOfChildren();
29             var links2 = accessibilityController.focusedElement.attributesOfDocumentLinks();
30             if (links1 != links2) {
31                 result.innerHTML += "PASS";
32             }
33             else {
34                 result.innerHTML += "FAIL - The div's visibility was toggled, but the new link did not appear\n\n";
35                 result.innerHTML += "Links1: " + links1 + "\n\nLinks2: " + links2 + "\n\n";
36             }
37         }
38     </script>
39 </body>
40 </html>