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

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

Issue 213003002: DevTools: allow whitelist of timeline events to be pushed live although in bufferEvent mode. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Same with front-end Created 6 years, 9 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
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 26 matching lines...) Expand all
37 InspectorTest.timelineModel = function() 37 InspectorTest.timelineModel = function()
38 { 38 {
39 return WebInspector.panels.timeline._model; 39 return WebInspector.panels.timeline._model;
40 } 40 }
41 41
42 InspectorTest.startTimeline = function(callback) 42 InspectorTest.startTimeline = function(callback)
43 { 43 {
44 InspectorTest._timelineRecords = []; 44 InspectorTest._timelineRecords = [];
45 WebInspector.inspectorView.panel("timeline").toggleTimelineButton.toggled = true; 45 WebInspector.inspectorView.panel("timeline").toggleTimelineButton.toggled = true;
46 WebInspector.inspectorView.panel("timeline")._model._collectionEnabled = tru e; 46 WebInspector.inspectorView.panel("timeline")._model._collectionEnabled = tru e;
47 TimelineAgent.start(5, false, true, false, callback); 47 TimelineAgent.start(5, false, undefined, true, false, callback);
48 function addRecord(record) 48 function addRecord(record)
49 { 49 {
50 InspectorTest._timelineRecords.push(record); 50 InspectorTest._timelineRecords.push(record);
51 for (var i = 0; record.children && i < record.children.length; ++i) 51 for (var i = 0; record.children && i < record.children.length; ++i)
52 addRecord(record.children[i]); 52 addRecord(record.children[i]);
53 } 53 }
54 InspectorTest._addTimelineEvent = function(event) 54 InspectorTest._addTimelineEvent = function(event)
55 { 55 {
56 addRecord(event.data); 56 addRecord(event.data);
57 } 57 }
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 return this._fileSize; 286 return this._fileSize;
287 }, 287 },
288 288
289 fileName: function() 289 fileName: function()
290 { 290 {
291 return "fakeFile"; 291 return "fakeFile";
292 } 292 }
293 }; 293 };
294 294
295 }; 295 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698