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

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: remove test expectation from moved test 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 InspectorTest.invokeAsyncWithTimeline = function(functionName, doneCallback) 96 InspectorTest.invokeAsyncWithTimeline = function(functionName, doneCallback)
97 { 97 {
98 InspectorTest.startTimeline(step1); 98 InspectorTest.startTimeline(step1);
99 function step1() 99 function step1()
100 { 100 {
101 InspectorTest.invokePageFunctionAsync(functionName, step2); 101 InspectorTest.invokePageFunctionAsync(functionName, step2);
102 } 102 }
103 103
104 function step2() 104 function step2()
105 { 105 {
106 InspectorTest.stopTimeline(doneCallback); 106 InspectorTest.stopTimeline(InspectorTest.safeWrap(doneCallback));
107 } 107 }
108 } 108 }
109 109
110 InspectorTest.loadTimelineRecords = function(records) 110 InspectorTest.loadTimelineRecords = function(records)
111 { 111 {
112 var model = WebInspector.panels.timeline._model; 112 var model = WebInspector.panels.timeline._model;
113 model.reset(); 113 model.reset();
114 records.forEach(model._addRecord, model); 114 records.forEach(model._addRecord, model);
115 } 115 }
116 116
(...skipping 244 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

Powered by Google App Engine
This is Rietveld 408576698