| Index: LayoutTests/inspector/timeline-dfs.html
|
| diff --git a/LayoutTests/inspector/timeline-dfs.html b/LayoutTests/inspector/timeline-dfs.html
|
| index e09afadf1f3f7aedad943647c2509e021389e0b8..d2353ff09204a2e1f186f910b4ceb674fe8b1a86 100644
|
| --- a/LayoutTests/inspector/timeline-dfs.html
|
| +++ b/LayoutTests/inspector/timeline-dfs.html
|
| @@ -1,6 +1,7 @@
|
| <html>
|
| <head>
|
| <script src="../http/tests/inspector/inspector-test.js"></script>
|
| +<script src="../http/tests/inspector/timeline-test.js"></script>
|
| <script type="text/javascript">
|
|
|
| var test = function()
|
| @@ -9,38 +10,39 @@ var test = function()
|
|
|
| function dumper(record)
|
| {
|
| - InspectorTest.addResult(record.name);
|
| + InspectorTest.addResult(record.type);
|
| }
|
|
|
| var records = [
|
| - {"name" : "a", "children" : [
|
| - {"name" : "aa", "children": [
|
| - {"name" : "aaa"},
|
| - {"name" : "aab"},
|
| + {"type" : "a", "children" : [
|
| + {"type" : "aa", "children": [
|
| + {"type" : "aaa"},
|
| + {"type" : "aab"},
|
| ]},
|
| - {"name" : "ab", "children":[
|
| - {"name" : "aba"},
|
| - {"name" : "abb"},
|
| + {"type" : "ab", "children":[
|
| + {"type" : "aba"},
|
| + {"type" : "abb"},
|
| ]}
|
| ]},
|
| - {"name" : "b", "children" : [
|
| - {"name" : "ba", "children" : [
|
| - {"name" : "baa"},
|
| - {"name" : "bab"},
|
| + {"type" : "b", "children" : [
|
| + {"type" : "ba", "children" : [
|
| + {"type" : "baa"},
|
| + {"type" : "bab"},
|
| ]},
|
| - {"name" : "bb", "children":[
|
| - {"name" : "bba"},
|
| - {"name" : "bbb"},
|
| + {"type" : "bb", "children":[
|
| + {"type" : "bba"},
|
| + {"type" : "bbb"},
|
| ]}
|
| ]},
|
| ];
|
|
|
| + InspectorTest.loadTimelineRecords(records);
|
| InspectorTest.addResult("DFS preorder:");
|
| - WebInspector.TimelineModel.forAllRecords(records, dumper);
|
| + InspectorTest.timelineModel().forAllRecords(dumper);
|
| InspectorTest.addResult("");
|
|
|
| InspectorTest.addResult("DFS postorder:");
|
| - WebInspector.TimelineModel.forAllRecords(records, null, dumper);
|
| + InspectorTest.timelineModel().forAllRecords(null, dumper);
|
| InspectorTest.completeTest();
|
| }
|
|
|
|
|