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

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

Issue 1739193003: Timeline: extract and rename TracingModelLoader into a file of its own (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/tracing/timeline-flame-chart-automatically-size-window.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js
index 566c9441b41d4fa12eec3f67074f1904324d81ba..2d9b050e751f6ea9d27a45cbfe8fd215fcdd17bd 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js
@@ -387,6 +387,19 @@ InspectorTest.FakeFileReader.prototype = {
}
};
+InspectorTest.loadTimeline = function(timelineData)
+{
+ var timeline = WebInspector.panels.timeline;
+
+ function createFileReader(file, delegate)
+ {
+ return new InspectorTest.FakeFileReader(timelineData, delegate, timeline._saveToFile.bind(timeline));
+ }
+
+ InspectorTest.override(WebInspector.TimelineLoader, "_createFileReader", createFileReader);
+ WebInspector.TimelineLoader.loadFromFile(InspectorTest.timelineModel(), {}, new WebInspector.Progress());
+}
+
};
function generateFrames(count, callback)
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/tracing/timeline-flame-chart-automatically-size-window.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698