Fix keypad issue when ime context transit to another context
[framework/web/webkit-efl.git] / LayoutTests / accessibility / legend.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 <fieldset>
9     <legend>Choose a shipping method:</legend>
10     <input id="overnight" type="radio" name="shipping" value="overnight" />Overnight
11 </fieldset>
12
13 <p id="description"></p>
14 <div id="console"></div>
15
16 <script>
17
18     description("This tests that a fieldset's title ui element is the legend's static text.");
19     if (window.accessibilityController) {
20
21         if (window.accessibilityController) {
22
23             var body = document.getElementById("body");
24             body.focus();
25
26             var fieldset = accessibilityController.focusedElement.childAtIndex(0);
27             var titleUIElement = fieldset.titleUIElement();
28             shouldBe("titleUIElement.role", "'AXRole: AXGroup'");
29             shouldBe("titleUIElement.childAtIndex(0).role", "'AXRole: AXStaticText'");
30             shouldBe("titleUIElement.childAtIndex(0).stringValue", "'AXValue: Choose a shipping method:'");
31         }
32     }
33 </script>
34
35 <script src="../../../fast/js/resources/js-test-post.js"></script>
36 </body>
37 </html>