Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Unified Diff: LayoutTests/http/tests/inspector/timeline-test.js

Issue 481403002: DevTools: move tracing based Timeline out of experiment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated inspector/timeline/timeline-coalescing.html Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/http/tests/inspector/timeline-xhr-event-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3bf79a7c586155f31482f47b88250229e2ad6d8f..c4cd7ab686ac2ecb8391a5ccf50005c811619dc2 100644
--- a/LayoutTests/http/tests/inspector/timeline-test.js
+++ b/LayoutTests/http/tests/inspector/timeline-test.js
@@ -19,11 +19,14 @@ InspectorTest.timelinePropertyFormatters = {
lineNumber: "formatAsTypeName",
columnNumber: "formatAsTypeName",
frameId: "formatAsTypeName",
+ frame: "formatAsTypeName",
encodedDataLength: "formatAsTypeName",
identifier: "formatAsTypeName",
clip: "formatAsTypeName",
root: "formatAsTypeName",
backendNodeId: "formatAsTypeName",
+ nodeId: "formatAsTypeName",
+ rootNode: "formatAsTypeName",
networkTime: "formatAsTypeName",
thread: "formatAsTypeName"
};
@@ -102,6 +105,14 @@ InspectorTest.loadTimelineRecords = function(records)
records.forEach(model._addRecord, model);
}
+InspectorTest.loadTimelineTraceEvents = function(sessionId, events)
+{
+ var tracingModel = WebInspector.inspectorView.showPanel("timeline")._tracingModel;
+ tracingModel._tracingStarted(sessionId);
+ tracingModel._eventsCollected(events);
+ tracingModel._tracingComplete();
+}
+
InspectorTest.performActionsAndPrint = function(actions, typeName, includeTimeStamps)
{
function callback()
@@ -251,6 +262,8 @@ InspectorTest.printTimelineRecordProperties = function(record)
}
if (record.children().length)
object["children"] = [];
+ if (!record.data() && record instanceof WebInspector.TracingTimelineModel.TraceEventRecord)
+ object["data"] = record.traceEvent().args;
InspectorTest.addObject(object, InspectorTest.timelinePropertyFormatters);
};
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/http/tests/inspector/timeline-xhr-event-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698