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

Unified Diff: third_party/WebKit/LayoutTests/inspector/tracing/buffer-usage.html

Issue 2717393003: [DevTools] Turn starting tracing into promise. (Closed)
Patch Set: more work Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector/tracing/buffer-usage.html
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/buffer-usage.html b/third_party/WebKit/LayoutTests/inspector/tracing/buffer-usage.html
index cc6e1d2cbf7aa120a974dbd4d021144580bb6e25..ff7b9c2f1537261e1e89fc0471ff4b7fec341423 100644
--- a/third_party/WebKit/LayoutTests/inspector/tracing/buffer-usage.html
+++ b/third_party/WebKit/LayoutTests/inspector/tracing/buffer-usage.html
@@ -12,11 +12,6 @@ function test()
}
TestTimelineControllerClient.prototype = {
- recordingStarted: function()
- {
- InspectorTest.addResult("TimelineControllerClient.recordingStarted");
- },
-
recordingProgress: function()
{
if (!controller)
@@ -52,7 +47,9 @@ function test()
};
var performanceModel = new Timeline.PerformanceModel();
var controller = new Timeline.TimelineController(SDK.targetManager.mainTarget(), performanceModel, new TestTimelineControllerClient());
- controller.startRecording({}, []);
+ controller.startRecording({}, []).then(() => {
+ InspectorTest.addResult("TimelineControllerClient.recordingStarted");
+ });
}
</script>

Powered by Google App Engine
This is Rietveld 408576698