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

Unified Diff: LayoutTests/inspector/tracing-test.js

Issue 557013005: DevTools: extract TracingManager from TracingModel (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments addressed Created 6 years, 3 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/inspector/tracing.html ('k') | LayoutTests/inspector/tracing/buffer-usage.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/tracing-test.js
diff --git a/LayoutTests/inspector/tracing-test.js b/LayoutTests/inspector/tracing-test.js
index 2c771107c68d238de1e438d47ed850d1f27ad2e0..e54453f971b0ce731d6d9bc258a741c49177c1f8 100644
--- a/LayoutTests/inspector/tracing-test.js
+++ b/LayoutTests/inspector/tracing-test.js
@@ -3,8 +3,9 @@ function initialize_TracingTest()
// FIXME: remove when tracing is out of experimental
WebInspector.inspectorView.showPanel("timeline");
-InspectorTest.tracingModel = new WebInspector.TracingModel(WebInspector.targetManager.mainTarget());
-InspectorTest.tracingTimelineModel = new WebInspector.TracingTimelineModel(InspectorTest.tracingModel, new WebInspector.TimelineRecordHiddenTypeFilter([]));
+InspectorTest.tracingManager = WebInspector.panels.timeline._tracingManager || new WebInspector.TracingManager();
+InspectorTest.tracingModel = new WebInspector.TracingModel();
+InspectorTest.tracingTimelineModel = new WebInspector.TracingTimelineModel(InspectorTest.tracingManager, InspectorTest.tracingModel, new WebInspector.TimelineRecordHiddenTypeFilter([]));
InspectorTest.invokeWithTracing = function(functionName, callback, additionalCategories)
{
« no previous file with comments | « LayoutTests/inspector/tracing.html ('k') | LayoutTests/inspector/tracing/buffer-usage.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698