Merge "[Release] Webkit2-efl-123997_0.11.51" into tizen_2.1
[framework/web/webkit-efl.git] / LayoutTests / accessibility / label-for-control-hittest.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 type="checkbox" id="item"><label for="item">
8 This is a lot of repeated text that when a hit test is performed, will 
9 return the corresponding checkbox control, because this text is only a label.
10 This is a lot of repeated text that when a hit test is performed, will 
11 return the corresponding checkbox control, because this text is only a label.
12 This is a lot of repeated text that when a hit test is performed, will 
13 return the corresponding checkbox control, because this text is only a label.
14 This is a lot of repeated text that when a hit test is performed, will 
15 return the corresponding checkbox control, because this text is only a label.
16 This is a lot of repeated text that when a hit test is performed, will 
17 return the corresponding checkbox control, because this text is only a label.
18 </label>
19
20 <p id="description"></p>
21 <div id="console"></div>
22
23 <script>
24
25     description("This tests that a hit test on a label of a control will return the control (instead of nothing).");
26
27     if (window.accessibilityController) {
28
29           var body = document.getElementById("body");
30           body.focus();
31
32           var control = accessibilityController.focusedElement.elementAtPoint(30, 100);
33
34           shouldBe("control.role", "'AXRole: AXCheckBox'");
35     }
36
37 </script>
38
39 <script src="../fast/js/resources/js-test-post.js"></script>
40 </body>
41 </html>