Merge "[Release] Webkit2-efl-123997_0.11.51" into tizen_2.1
[framework/web/webkit-efl.git] / LayoutTests / accessibility / ignore-spacer-elements.html
1 <html>
2 <script>
3     if (window.testRunner)
4         testRunner.dumpAsText();
5 </script>
6 <body id="body">
7  
8     <!-- This test makes sure that spacer elements are not returned as elements. There should only be 4 elements returned -->
9  
10    <b>First</b>
11    <b>Second</b>
12    <a href="http://www.apple.com">Apple</a>
13    <a href="http://www.yahoo.com">Yahoo</a>
14
15     
16     <div id="result"></div>
17
18      
19     <script>
20         if (window.accessibilityController) {
21             var result = document.getElementById("result");
22
23             var body = document.getElementById("body");
24             body.focus();
25             var container = accessibilityController.focusedElement.childAtIndex(0);
26             
27             if (container.childrenCount == 4) {
28                 result.innerText += "Test passed\n";
29             }
30             else {
31                  result.innerText += "Test failed\n";
32             }
33         }
34     </script>
35 </body>
36 </html>