OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../http/tests/inspector/inspector-test.js"></script> |
4 <script type="text/javascript"> | 4 <script type="text/javascript"> |
5 | 5 |
6 var test = function() | 6 var test = function() |
7 { | 7 { |
8 WebInspector.showPanel("timeline"); | 8 WebInspector.showPanel("timeline"); |
9 | 9 |
10 function dumper(record) | 10 function dumper(record) |
(...skipping 18 matching lines...) Expand all Loading... |
29 {"name" : "bab"}, | 29 {"name" : "bab"}, |
30 ]}, | 30 ]}, |
31 {"name" : "bb", "children":[ | 31 {"name" : "bb", "children":[ |
32 {"name" : "bba"}, | 32 {"name" : "bba"}, |
33 {"name" : "bbb"}, | 33 {"name" : "bbb"}, |
34 ]} | 34 ]} |
35 ]}, | 35 ]}, |
36 ]; | 36 ]; |
37 | 37 |
38 InspectorTest.addResult("DFS preorder:"); | 38 InspectorTest.addResult("DFS preorder:"); |
39 WebInspector.TimelinePresentationModel.forAllRecords(records, dumper); | 39 WebInspector.TimelineModel.forAllRecords(records, dumper); |
40 InspectorTest.addResult(""); | 40 InspectorTest.addResult(""); |
41 | 41 |
42 InspectorTest.addResult("DFS postorder:"); | 42 InspectorTest.addResult("DFS postorder:"); |
43 WebInspector.TimelinePresentationModel.forAllRecords(records, null, dumper); | 43 WebInspector.TimelineModel.forAllRecords(records, null, dumper); |
44 InspectorTest.completeTest(); | 44 InspectorTest.completeTest(); |
45 } | 45 } |
46 | 46 |
47 </script> | 47 </script> |
48 </head> | 48 </head> |
49 <body onload="runTest()"> | 49 <body onload="runTest()"> |
50 <p>Tests TimelinePresentationModel.forAllRecords function.</p> | 50 <p>Tests TimelineModel.forAllRecords function.</p> |
51 </body> | 51 </body> |
52 </html> | 52 </html> |
OLD | NEW |