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

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

Issue 397823003: DevTools: Support multiple target in TimelineModelImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix tests Created 6 years, 5 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
« no previous file with comments | « no previous file | LayoutTests/inspector/timeline/timeline-receive-response-event.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 25 matching lines...) Expand all
36 InspectorTest.timelineModel = function() 36 InspectorTest.timelineModel = function()
37 { 37 {
38 return WebInspector.panels.timeline._model; 38 return WebInspector.panels.timeline._model;
39 } 39 }
40 40
41 InspectorTest.startTimeline = function(callback) 41 InspectorTest.startTimeline = function(callback)
42 { 42 {
43 InspectorTest._timelineRecords = []; 43 InspectorTest._timelineRecords = [];
44 WebInspector.inspectorView.panel("timeline").toggleTimelineButton.toggled = true; 44 WebInspector.inspectorView.panel("timeline").toggleTimelineButton.toggled = true;
45 WebInspector.inspectorView.panel("timeline")._model._collectionEnabled = tru e; 45 WebInspector.inspectorView.panel("timeline")._model._collectionEnabled = tru e;
46 WebInspector.inspectorView.panel("timeline")._model._currentTarget = WebInsp ector.targetManager.mainTarget();
47
46 TimelineAgent.start(5, false, undefined, true, false, callback); 48 TimelineAgent.start(5, false, undefined, true, false, callback);
47 function addRecord(record) 49 function addRecord(record)
48 { 50 {
49 InspectorTest._timelineRecords.push(record); 51 InspectorTest._timelineRecords.push(record);
50 for (var i = 0; record.children && i < record.children.length; ++i) 52 for (var i = 0; record.children && i < record.children.length; ++i)
51 addRecord(record.children[i]); 53 addRecord(record.children[i]);
52 } 54 }
53 InspectorTest._addTimelineEvent = function(event) 55 InspectorTest._addTimelineEvent = function(event)
54 { 56 {
55 addRecord(event.data); 57 addRecord(event.data);
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 return this._fileSize; 357 return this._fileSize;
356 }, 358 },
357 359
358 fileName: function() 360 fileName: function()
359 { 361 {
360 return "fakeFile"; 362 return "fakeFile";
361 } 363 }
362 }; 364 };
363 365
364 }; 366 };
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/timeline/timeline-receive-response-event.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698