Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js |
| index 75c0022cf9ab6b239c88b62695ccc9dddbe4ca99..4013afd509c0d689a7f5ed563068a8d44e73168a 100644 |
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js |
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js |
| @@ -90,10 +90,11 @@ InspectorTest.invokeWithTracing = function(functionName, callback, additionalCat |
| var timelinePanel = UI.panels.timeline; |
| var timelineController = InspectorTest.timelineController(); |
| timelinePanel._timelineController = timelineController; |
| - timelineController._startRecordingWithCategories(categories, enableJSSampling, tracingStarted); |
| + timelineController._startRecordingWithCategories(categories, enableJSSampling).then(tracingStarted); |
|
alph
2017/02/28 03:11:24
await
dgozman
2017/02/28 08:59:01
No, thanks :-)
|
| function tracingStarted() |
| { |
| + timelinePanel._recordingStarted(); |
| InspectorTest.callFunctionInPageAsync(functionName).then(onPageActionsDone); |
| } |
| @@ -144,7 +145,7 @@ InspectorTest.runWhenTimelineIsReady = function(callback) |
| InspectorTest.startTimeline = function(callback) |
| { |
| var panel = UI.panels.timeline; |
| - InspectorTest.addSniffer(panel, "recordingStarted", callback); |
| + InspectorTest.addSniffer(panel, "_recordingStarted", callback); |
| panel._toggleRecording(); |
| }; |