Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / accessibility / ignore-spacer-elements.html
blob961885f9e94a6d328ed040904d5f0522d3eb6890
1 <html>
2 <script>
3 if (window.layoutTestController)
4 layoutTestController.dumpAsText();
5 </script>
6 <body id="body">
8 <!-- This test makes sure that spacer elements are not returned as elements. There should only be 4 elements returned -->
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>
16 <div id="result"></div>
19 <script>
20 if (window.accessibilityController) {
21 var result = document.getElementById("result");
23 var body = document.getElementById("body");
24 body.focus();
25 var container = accessibilityController.focusedElement.childAtIndex(0);
27 if (container.childrenCount == 4) {
28 result.innerText += "Test passed\n";
30 else {
31 result.innerText += "Test failed\n";
34 </script>
35 </body>
36 </html>