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

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

Issue 715803002: DevTools: merge TracingTimelineModel into TimelineModel (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 var initialize_Timeline = function() { 1 var initialize_Timeline = function() {
2 2
3 InspectorTest.preloadPanel("timeline"); 3 InspectorTest.preloadPanel("timeline");
4 4
5 // Scrub values when printing out these properties in the record or data field. 5 // Scrub values when printing out these properties in the record or data field.
6 InspectorTest.timelinePropertyFormatters = { 6 InspectorTest.timelinePropertyFormatters = {
7 children: "formatAsTypeName", 7 children: "formatAsTypeName",
8 endTime: "formatAsTypeName", 8 endTime: "formatAsTypeName",
9 requestId: "formatAsTypeName", 9 requestId: "formatAsTypeName",
10 startTime: "formatAsTypeName", 10 startTime: "formatAsTypeName",
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 var object = {}; 259 var object = {};
260 var names = ["data", "endTime", "frameId", "stackTrace", "startTime", "threa d", "type"]; 260 var names = ["data", "endTime", "frameId", "stackTrace", "startTime", "threa d", "type"];
261 for (var i = 0; i < names.length; i++) { 261 for (var i = 0; i < names.length; i++) {
262 var name = names[i]; 262 var name = names[i];
263 var value = record[name].call(record) 263 var value = record[name].call(record)
264 if (value) 264 if (value)
265 object[name] = value; 265 object[name] = value;
266 } 266 }
267 if (record.children().length) 267 if (record.children().length)
268 object["children"] = []; 268 object["children"] = [];
269 if (!record.data() && record instanceof WebInspector.TracingTimelineModel.Tr aceEventRecord) 269 if (!record.data())
270 object["data"] = record.traceEvent().args; 270 object["data"] = record.traceEvent().args;
271 InspectorTest.addObject(object, InspectorTest.timelinePropertyFormatters); 271 InspectorTest.addObject(object, InspectorTest.timelinePropertyFormatters);
272 }; 272 };
273 273
274 InspectorTest.findFirstTimelineRecord = function(type) 274 InspectorTest.findFirstTimelineRecord = function(type)
275 { 275 {
276 return InspectorTest.findTimelineRecord(type, 0); 276 return InspectorTest.findTimelineRecord(type, 0);
277 } 277 }
278 278
279 // Find the (n+1)th timeline record of a specific type. 279 // Find the (n+1)th timeline record of a specific type.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 return this._fileSize; 361 return this._fileSize;
362 }, 362 },
363 363
364 fileName: function() 364 fileName: function()
365 { 365 {
366 return "fakeFile"; 366 return "fakeFile";
367 } 367 }
368 }; 368 };
369 369
370 }; 370 };
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/tracing-session-id.html » ('j') | Source/devtools/front_end/timeline/TimelinePanel.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698