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

Unified Diff: LayoutTests/inspector/timeline/tracing/decode-resize.html

Issue 310313003: Introduce TracingTimelineModel (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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: LayoutTests/inspector/timeline/tracing/decode-resize.html
diff --git a/LayoutTests/inspector/timeline/tracing/decode-resize.html b/LayoutTests/inspector/timeline/tracing/decode-resize.html
index 81333bf39c5278426420bc64d1e2e9cd057d9ff3..ea13e5173e3dc8382d6addd0c3eb954817a1fd33 100644
--- a/LayoutTests/inspector/timeline/tracing/decode-resize.html
+++ b/LayoutTests/inspector/timeline/tracing/decode-resize.html
@@ -58,14 +58,15 @@ function test()
var imageCount = 0;
InspectorTest.invokeWithTracing("-*,devtools,disabled-by-default-devtools.timeline*", "showImages", onTracingComplete);
+ var tracineTimelineModel = new WebInspector.TracingTimelineModel(InspectorTest.tracingModel);
+ tracineTimelineModel.willStartRecordingTraceEvents();
function onTracingComplete()
{
- var traceEventBindings = new WebInspector.TimelineTraceEventBindings();
- var events = InspectorTest.tracingModel.inspectedTargetEvents();
- traceEventBindings.setEvents(events);
+ tracineTimelineModel.didStopRecordingTraceEvents();
+ var events = tracineTimelineModel.inspectedTargetEvents();
for (var i = 0; i < events.length; ++i) {
var event = events[i];
- if (events[i].name !== WebInspector.TimelineTraceEventBindings.RecordType.DecodeImage)
+ if (events[i].name !== WebInspector.TracingTimelineModel.RecordType.DecodeImage)
continue;
InspectorTest.addResult("event: " + event.name);
InspectorTest.addResult("imageURL: " + InspectorTest.formatters.formatAsURL(event.imageURL));
« no previous file with comments | « LayoutTests/inspector/timeline/trace-event-self-time.html ('k') | LayoutTests/inspector/tracing-session-id.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698