Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / inline-continuations.html
blob41473cbafbd267addb9f98e6db8b30f71048eb64
1 <!DOCTYPE html>
2 <head>
3 <title>Inline continuations - accessibility tree linkage</title>
4 <script src="../resources/js-test.js"></script>
5 <script>
6 if (window.testRunner)
7 testRunner.dumpAsText();
8 </script>
9 </head>
10 <body>
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
17 tree.</p>
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>
23 <script>
24 function nonGroupDescendants(elt)
26 var result = 0;
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')
31 result++;
32 result += nonGroupDescendants(child);
34 return result;
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");
47 </script>
49 </body>