3 <title>Inline continuations - accessibility tree linkage
</title>
4 <script src=
"../resources/js-test.js"></script>
7 testRunner
.dumpAsText();
12 <h2>Inline continuations - accessibility tree linkage
</h2>
14 <p>This test checks that the right accessibility tree is generated in
15 the presence of inline continuations. Each of the five numbers
16 below should be visited only ones traversing the accessibility
19 <div contentEditable=
"true" id=
"test"><span>1<div role=
"group">2</div>3</span><span>4</span><div role=
"group">5</div></div>
21 <div id=
"console"></div>
24 function nonGroupDescendants(elt
)
27 var count
= elt
.childrenCount
;
28 for (var i
= 0; i
< count
; ++i
) {
29 var child
= elt
.childAtIndex(i
);
30 if (child
.role
!= 'AXRole: AXGroup' && child
.role
!= 'AXRole: AXInlineTextBox')
32 result
+= nonGroupDescendants(child
);
37 if (window
.accessibilityController
) {
38 var result
= document
.getElementById("result");
39 document
.getElementById("test").focus();
40 shouldBe("nonGroupDescendants(accessibilityController.focusedElement)", "5");
42 // This should pass (and is a simpler test than above) if anonymous blocks were not in the AX tree
43 // shouldBe("accessibilityController.focusedElement.childrenCount", "5");