Fix keypad issue when ime context transit to another context
[framework/web/webkit-efl.git] / LayoutTests / accessibility / label-element-press.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
7 <body id="body">
8
9 <label tabindex=0 onclick="performEvent();" id="labelElement">label</label>
10
11 <p id="description"></p>
12 <div id="console"></div>
13
14 <script>
15
16     description("This tests that a label element without a corresponding control will perform a press action on itself instead of nothing.");
17  
18     function performEvent() {
19        testRunner.notifyDone();
20     }
21
22     if (window.accessibilityController) {
23  
24         testRunner.waitUntilDone();
25         document.getElementById("body").focus();
26         var body = accessibilityController.focusedElement;
27         var label = body.childAtIndex(0).childAtIndex(0);
28     
29         // if successful, performEvent() will be called and we'll successfully parse.        
30         label.press();
31     }
32
33 </script>
34
35 <script src="../fast/js/resources/js-test-post.js"></script>
36 </body>
37 </html>