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

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

Issue 717243002: Timeline: do not imply event.thread.target is the main target (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: avoid keep stale model in TimelineFrameModel 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 WebInspector.TempFile = InspectorTest.TempFileMock; 4 WebInspector.TempFile = InspectorTest.TempFileMock;
5 5
6 // Scrub values when printing out these properties in the record or data field. 6 // Scrub values when printing out these properties in the record or data field.
7 InspectorTest.timelinePropertyFormatters = { 7 InspectorTest.timelinePropertyFormatters = {
8 children: "formatAsTypeName", 8 children: "formatAsTypeName",
9 endTime: "formatAsTypeName", 9 endTime: "formatAsTypeName",
10 requestId: "formatAsTypeName", 10 requestId: "formatAsTypeName",
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 InspectorTest.invokeAsyncWithTimeline = function(functionName, doneCallback) 97 InspectorTest.invokeAsyncWithTimeline = function(functionName, doneCallback)
98 { 98 {
99 InspectorTest.startTimeline(step1); 99 InspectorTest.startTimeline(step1);
100 function step1() 100 function step1()
101 { 101 {
102 InspectorTest.invokePageFunctionAsync(functionName, step2); 102 InspectorTest.invokePageFunctionAsync(functionName, step2);
103 } 103 }
104 104
105 function step2() 105 function step2()
106 { 106 {
107 InspectorTest.stopTimeline(doneCallback); 107 InspectorTest.stopTimeline(InspectorTest.safeWrap(doneCallback));
108 } 108 }
109 } 109 }
110 110
111 InspectorTest.loadTimelineRecords = function(records) 111 InspectorTest.loadTimelineRecords = function(records)
112 { 112 {
113 var model = WebInspector.panels.timeline._model; 113 var model = WebInspector.panels.timeline._model;
114 model.reset(); 114 model.reset();
115 records.forEach(model._addRecord, model); 115 records.forEach(model._addRecord, model);
116 } 116 }
117 117
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 return this._fileSize; 362 return this._fileSize;
363 }, 363 },
364 364
365 fileName: function() 365 fileName: function()
366 { 366 {
367 return "fakeFile"; 367 return "fakeFile";
368 } 368 }
369 }; 369 };
370 370
371 }; 371 };
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/inspector/layers-test.js ('k') | LayoutTests/inspector/layers/tracing-layer-tree.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698