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

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

Issue 334743008: Remove references to isBackground (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/inspector/timeline/timeline-network-resource.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var initialize_Timeline = function() { 1 var initialize_Timeline = function() {
2 2
3 // Scrub values when printing out these properties in the record or data field. 3 // Scrub values when printing out these properties in the record or data field.
4 InspectorTest.timelinePropertyFormatters = { 4 InspectorTest.timelinePropertyFormatters = {
5 children: "formatAsTypeName", 5 children: "formatAsTypeName",
6 endTime: "formatAsTypeName", 6 endTime: "formatAsTypeName",
7 requestId: "formatAsTypeName", 7 requestId: "formatAsTypeName",
8 startTime: "formatAsTypeName", 8 startTime: "formatAsTypeName",
9 stackTrace: "formatAsTypeName", 9 stackTrace: "formatAsTypeName",
10 url: "formatAsURL", 10 url: "formatAsURL",
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 { 278 {
279 this._delegate = delegate; 279 this._delegate = delegate;
280 this._callback = callback; 280 this._callback = callback;
281 this._input = input; 281 this._input = input;
282 this._loadedSize = 0; 282 this._loadedSize = 0;
283 this._fileSize = input.length; 283 this._fileSize = input.length;
284 }; 284 };
285 285
286 InspectorTest.dumpFrame = function(frame) 286 InspectorTest.dumpFrame = function(frame)
287 { 287 {
288 var fieldsToDump = ["cpuTime", "duration", "startTime", "endTime", "id", "ma inThreadFrameId", "isBackground", "timeByCategory", "other", "scripting", "paint ing", "rendering", "committedFrom"]; 288 var fieldsToDump = ["cpuTime", "duration", "startTime", "endTime", "id", "ma inThreadFrameId", "timeByCategory", "other", "scripting", "painting", "rendering ", "committedFrom"];
289 function formatFields(object) 289 function formatFields(object)
290 { 290 {
291 var result = {}; 291 var result = {};
292 for (var key in object) { 292 for (var key in object) {
293 if (fieldsToDump.indexOf(key) < 0) 293 if (fieldsToDump.indexOf(key) < 0)
294 continue; 294 continue;
295 var value = object[key]; 295 var value = object[key];
296 if (typeof value === "number") 296 if (typeof value === "number")
297 value = Number(value.toFixed(7)); 297 value = Number(value.toFixed(7));
298 else if (typeof value === "object" && value) 298 else if (typeof value === "object" && value)
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 return this._fileSize; 340 return this._fileSize;
341 }, 341 },
342 342
343 fileName: function() 343 fileName: function()
344 { 344 {
345 return "fakeFile"; 345 return "fakeFile";
346 } 346 }
347 }; 347 };
348 348
349 }; 349 };
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/timeline/timeline-network-resource.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698