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

Unified Diff: test/inspector/cpu-profiler/console-profile.js

Issue 2891213002: [inspector] Refactor protocol-test.js (Closed)
Patch Set: comments addressed Created 3 years, 7 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: test/inspector/cpu-profiler/console-profile.js
diff --git a/test/inspector/cpu-profiler/console-profile.js b/test/inspector/cpu-profiler/console-profile.js
index b8e36b686138b3ca469f68220df3e8601047ec8c..9aa7542cea422a00a1e0d4bd4b594b04fb2b69d3 100644
--- a/test/inspector/cpu-profiler/console-profile.js
+++ b/test/inspector/cpu-profiler/console-profile.js
@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-InspectorTest.log("Tests that console.profile/profileEnd will record CPU profile when inspector front-end is connected.");
+let {session, contextGroup, Protocol} = InspectorTest.start("Tests that console.profile/profileEnd will record CPU profile when inspector front-end is connected.");
-InspectorTest.addScript(`
+contextGroup.addScript(`
function collectProfiles()
{
console.profile("outer");

Powered by Google App Engine
This is Rietveld 408576698