MediaPlayerPrivateAVFoundationObjC's "periodic time observer" is unnecessary
[WebKit-https.git] / LayoutTests / accessibility / adjacent-continuations-cause-assertion-failure.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <link rel="stylesheet" href="../fast/js/resources/js-test-style.css">
5 <script>
6     var successfullyParsed = false;
7
8     function buildAccessibilityTree(accessibilityObject, indent) {
9         var str = "";
10         for (var i = 0; i < indent; i++)
11             str += "    ";
12         str += accessibilityObject.role;
13         str += " " + accessibilityObject.stringValue;
14         str += "\n";
15         document.getElementById("tree").innerText += str;
16
17         if (accessibilityObject.stringValue.indexOf('End of test') >= 0)
18             return false;
19
20         var count = accessibilityObject.childrenCount;
21         for (var i = 0; i < count; ++i) {
22             if (!buildAccessibilityTree(accessibilityObject.childAtIndex(i), indent + 1))
23                 return false;
24         }
25
26         return true;
27     }
28 </script>
29 <script src="../fast/js/resources/js-test-pre.js"></script>
30 </head>
31 <body>
32
33 <span><div></div></span><span>x<div>y</div>z</span>
34
35 <div>End of test</div>
36
37 <p id="description"></p>
38 <pre id="tree"></pre>
39 <div id="console"></div>
40
41 <script>
42     description("Make sure that a debug assert is not triggered when constructing the accessibility tree for this page.");
43
44     if (window.accessibilityController) {
45         // Build the accessibility tree up until 'End of test' is encountered.
46         document.body.focus();
47         buildAccessibilityTree(accessibilityController.focusedElement, 0);
48     }
49
50     successfullyParsed = true;
51 </script>
52
53 <script src="../fast/js/resources/js-test-post.js"></script>
54 </body>
55 </html>