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

Unified Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-flame-chart-automatically-size-window.html

Issue 1754713002: Reland of Timeline: extract and rename TracingModelLoader into a file of its own (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
Index: third_party/WebKit/LayoutTests/inspector/tracing/timeline-flame-chart-automatically-size-window.html
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-flame-chart-automatically-size-window.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-flame-chart-automatically-size-window.html
index 586bf487fec071c70a7a464a7ac499eff2b95d48..88ee61d088960f0402e15f5ebeaa2f20b84ccae1 100644
--- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-flame-chart-automatically-size-window.html
+++ b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-flame-chart-automatically-size-window.html
@@ -8,8 +8,6 @@
function test()
{
- var timelineData = InspectorTest.timelineData();
-
var timeline = WebInspector.panels.timeline;
timeline._onModeChanged();
timeline._currentViews[0]._automaticallySizeWindow = true;
@@ -21,16 +19,8 @@
}
timeline.requestWindowTimes = requestWindowTimesHook;
- var model = timeline._model;
+ InspectorTest.loadTimeline(InspectorTest.timelineData());
- function createFileReader(file, delegate)
- {
- return new InspectorTest.FakeFileReader(timelineData, delegate, timeline._saveToFile.bind(timeline));
- }
-
- InspectorTest.override(model, "_createFileReader", createFileReader);
-
- model.loadFromFile({}, new WebInspector.Progress());
InspectorTest.completeTest();
}

Powered by Google App Engine
This is Rietveld 408576698