4 testRunner
.dumpAsText();
8 <!-- This test makes sure that spacer elements are not returned as elements. There should be at most 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 // The Gtk port ATs expect the bold inline text to not have accessible objects.
28 var expectedCount
= (testRunner
.platformName
== "gtk") ? 2 : 4;
29 if (container
.childrenCount
== expectedCount
) {
30 result
.innerText
+= "Test passed\n";
33 result
.innerText
+= "Test failed\n";