| <script src="../http/tests/inspector/inspector-test.js"></script> |
| <script type="text/javascript"> |
| WebInspector.showPanel("timeline"); |
| InspectorTest.addResult(record.name); |
| {"name" : "a", "children" : [ |
| {"name" : "aa", "children": [ |
| {"name" : "ab", "children":[ |
| {"name" : "b", "children" : [ |
| {"name" : "ba", "children" : [ |
| {"name" : "bb", "children":[ |
| InspectorTest.addResult("DFS preorder:"); |
| WebInspector.TimelinePresentationModel.forAllRecords(records, dumper); |
| InspectorTest.addResult(""); |
| InspectorTest.addResult("DFS postorder:"); |
| WebInspector.TimelinePresentationModel.forAllRecords(records, null, dumper); |
| InspectorTest.completeTest(); |
| <body onload="runTest()"> |
| <p>Tests TimelinePresentationModel.forAllRecords function.</p> |