Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / expand-recursively.html
blob32d303552cabbc793fdf13203d24989e645a54ee
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/elements-test.js"></script>
5 <script>
7 function test()
9 var treeOutline = InspectorTest.firstElementsTreeOutline();
10 InspectorTest.findNode(function() { return false; }, firstStep);
12 function firstStep()
14 InspectorTest.addResult("===== Initial state of tree outline =====\n");
15 dump();
17 var topNode = treeOutline.rootElement().childAt(0).childAt(1).childAt(1);
18 topNode.expandRecursively();
19 InspectorTest.runAfterPendingDispatches(secondStep);
22 function secondStep()
24 InspectorTest.addResult("\n===== State of tree outline after calling .expandRecursively() =====\n");
25 dump();
27 InspectorTest.completeTest();
30 function dump()
32 var node = InspectorTest.expandedNodeWithId("depth-1");
33 InspectorTest.dumpElementsTree(node);
37 </script>
38 </head>
40 <body onload="runTest()">
41 <p>
42 Tests that expanding elements recursively works.
43 </p>
45 <div id="depth-1">
46 <div id="depth-2">
47 <div id="depth-3">
48 <div id="depth-4">
49 <div id="depth-5">
50 <div id="depth-6">
51 <div id="depth-7">
52 <div id="depth-8">
53 <div id="depth-9">
54 <div id="depth-10"></div>
55 </div>
56 </div>
57 </div>
58 </div>
59 </div>
60 </div>
61 </div>
62 </div>
63 </div>
65 </body>
66 </html>