3 <script src="../http/tests/inspector/inspector-test.js"></script>
4 <script type="text/javascript">
8 function dumper(record)
10 InspectorTest.addResult(record.name);
14 {"name" : "a", "children" : [
15 {"name" : "aa", "children": [
19 {"name" : "ab", "children":[
24 {"name" : "b", "children" : [
25 {"name" : "ba", "children" : [
29 {"name" : "bb", "children":[
36 InspectorTest.addResult("DFS preorder:");
37 WebInspector.TimelinePresentationModel.forAllRecords(records, dumper);
38 InspectorTest.addResult("");
40 InspectorTest.addResult("DFS postorder:");
41 WebInspector.TimelinePresentationModel.forAllRecords(records, null, dumper);
42 InspectorTest.completeTest();
47 <body onload="runTest()">
48 <p>Tests TimelinePresentationModel.forAllRecords function.</p>