3 if (window
.layoutTestController
)
4 layoutTestController
.dumpAsText();
8 <!-- This test makes sure that spacer elements are not returned as elements. There should only be 4 elements returned -->
12 <a href=
"http://www.apple.com">Apple
</a>
13 <a href=
"http://www.yahoo.com">Yahoo
</a>
16 <div id=
"result"></div>
20 if (window
.accessibilityController
) {
21 var result
= document
.getElementById("result");
23 var body
= document
.getElementById("body");
25 var container
= accessibilityController
.focusedElement
.childAtIndex(0);
27 if (container
.childrenCount
== 4) {
28 result
.innerText
+= "Test passed\n";
31 result
.innerText
+= "Test failed\n";