OLD | NEW |
1 var initialize_Timeline = function() { | 1 var initialize_Timeline = function() { |
2 | 2 |
3 // Scrub values when printing out these properties in the record or data field. | 3 // Scrub values when printing out these properties in the record or data field. |
4 InspectorTest.timelinePropertyFormatters = { | 4 InspectorTest.timelinePropertyFormatters = { |
5 children: "formatAsTypeName", | 5 children: "formatAsTypeName", |
6 endTime: "formatAsTypeName", | 6 endTime: "formatAsTypeName", |
7 requestId: "formatAsTypeName", | 7 requestId: "formatAsTypeName", |
8 startTime: "formatAsTypeName", | 8 startTime: "formatAsTypeName", |
9 stackTrace: "formatAsTypeName", | 9 stackTrace: "formatAsTypeName", |
10 url: "formatAsURL", | 10 url: "formatAsURL", |
(...skipping 25 matching lines...) Expand all Loading... |
36 InspectorTest.timelineModel = function() | 36 InspectorTest.timelineModel = function() |
37 { | 37 { |
38 return WebInspector.panels.timeline._model; | 38 return WebInspector.panels.timeline._model; |
39 } | 39 } |
40 | 40 |
41 InspectorTest.startTimeline = function(callback) | 41 InspectorTest.startTimeline = function(callback) |
42 { | 42 { |
43 InspectorTest._timelineRecords = []; | 43 InspectorTest._timelineRecords = []; |
44 WebInspector.inspectorView.panel("timeline").toggleTimelineButton.toggled =
true; | 44 WebInspector.inspectorView.panel("timeline").toggleTimelineButton.toggled =
true; |
45 WebInspector.inspectorView.panel("timeline")._model._collectionEnabled = tru
e; | 45 WebInspector.inspectorView.panel("timeline")._model._collectionEnabled = tru
e; |
| 46 WebInspector.inspectorView.panel("timeline")._model._currentTarget = WebInsp
ector.targetManager.mainTarget(); |
| 47 |
46 TimelineAgent.start(5, false, undefined, true, false, callback); | 48 TimelineAgent.start(5, false, undefined, true, false, callback); |
47 function addRecord(record) | 49 function addRecord(record) |
48 { | 50 { |
49 InspectorTest._timelineRecords.push(record); | 51 InspectorTest._timelineRecords.push(record); |
50 for (var i = 0; record.children && i < record.children.length; ++i) | 52 for (var i = 0; record.children && i < record.children.length; ++i) |
51 addRecord(record.children[i]); | 53 addRecord(record.children[i]); |
52 } | 54 } |
53 InspectorTest._addTimelineEvent = function(event) | 55 InspectorTest._addTimelineEvent = function(event) |
54 { | 56 { |
55 addRecord(event.data); | 57 addRecord(event.data); |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 return this._fileSize; | 357 return this._fileSize; |
356 }, | 358 }, |
357 | 359 |
358 fileName: function() | 360 fileName: function() |
359 { | 361 { |
360 return "fakeFile"; | 362 return "fakeFile"; |
361 } | 363 } |
362 }; | 364 }; |
363 | 365 |
364 }; | 366 }; |
OLD | NEW |