| Index: LayoutTests/http/tests/inspector/timeline-test.js
|
| diff --git a/LayoutTests/http/tests/inspector/timeline-test.js b/LayoutTests/http/tests/inspector/timeline-test.js
|
| index 588e57d31d472a8a35e4922d2bdb88522187c6c3..f407d976d4a26e6a768a7502106b68cbb04411eb 100644
|
| --- a/LayoutTests/http/tests/inspector/timeline-test.js
|
| +++ b/LayoutTests/http/tests/inspector/timeline-test.js
|
| @@ -145,7 +145,7 @@ InspectorTest.performActionsAndPrint = function(actions, typeName, includeTimeSt
|
| {
|
| function callback()
|
| {
|
| - InspectorTest.printTimelineRecords(typeName);
|
| + InspectorTest.printTimelineRecordsWithDetails(typeName);
|
| if (includeTimeStamps) {
|
| InspectorTest.addResult("Timestamp records: ");
|
| InspectorTest.printTimestampRecords(typeName);
|
| @@ -160,6 +160,25 @@ InspectorTest.printTimelineRecords = function(typeName, formatter)
|
| InspectorTest.timelineModel().forAllRecords(InspectorTest._printTimlineRecord.bind(InspectorTest, typeName, formatter));
|
| };
|
|
|
| +InspectorTest.detailsTextForTraceEvent = function(traceEvent)
|
| +{
|
| + return WebInspector.TimelineUIUtils.buildDetailsTextForTraceEvent(traceEvent,
|
| + WebInspector.targetManager.mainTarget(),
|
| + new WebInspector.Linkifier());
|
| +}
|
| +
|
| +InspectorTest.printTimelineRecordsWithDetails = function(typeName)
|
| +{
|
| + function detailsFormatter(recordType, record)
|
| + {
|
| + if (recordType && recordType !== record.type())
|
| + return;
|
| + InspectorTest.addResult("Text details for " + record.type() + ": " + InspectorTest.detailsTextForTraceEvent(record.traceEvent()));
|
| + }
|
| +
|
| + InspectorTest.timelineModel().forAllRecords(InspectorTest._printTimlineRecord.bind(InspectorTest, typeName, detailsFormatter.bind(null, typeName)));
|
| +};
|
| +
|
| InspectorTest.printTimelinePresentationRecords = function(typeName, formatter)
|
| {
|
| InspectorTest.innerPrintTimelinePresentationRecords(WebInspector.panels.timeline._model.records(), typeName, formatter);
|
| @@ -184,7 +203,6 @@ InspectorTest._printTimlineRecord = function(typeName, formatter, record)
|
| formatter(record);
|
| };
|
|
|
| -
|
| InspectorTest.innerPrintTimelinePresentationRecords = function(records, typeName, formatter)
|
| {
|
| for (var i = 0; i < records.length; ++i) {
|
|
|