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

Unified Diff: test/inspector/debugger/continue-to-location-target-call-frames.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/debugger/continue-to-location-target-call-frames.js
diff --git a/test/inspector/debugger/continue-to-location-target-call-frames.js b/test/inspector/debugger/continue-to-location-target-call-frames.js
index 6f5d8b5f00ed0b464357e09f34d68b9339694ec7..c33ff6b93cae25300a1d2e566077b2db4aac5e5d 100644
--- a/test/inspector/debugger/continue-to-location-target-call-frames.js
+++ b/test/inspector/debugger/continue-to-location-target-call-frames.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('Check that continue-to-location works with different strategies.');
+let {session, contextGroup, Protocol} = InspectorTest.start('Check that continue-to-location works with different strategies.');
-InspectorTest.addScript(`
+contextGroup.addScript(`
async function asyncFact(n) {
if (n == 0) return 1;
let r = n * await asyncFact(n - 1);
@@ -30,7 +30,7 @@ function topLevel() {
//# sourceURL=test.js`, 7, 26);
-InspectorTest.setupScriptMap();
+session.setupScriptMap();
InspectorTest.runAsyncTestSuite([
async function testAwaitAny() {
Protocol.Debugger.enable();
@@ -132,8 +132,8 @@ InspectorTest.runAsyncTestSuite([
async function pausedAndDumpStack() {
let message = await Protocol.Debugger.oncePaused();
- InspectorTest.logCallFrames(message.params.callFrames);
- InspectorTest.logAsyncStackTrace(message.params.asyncStackTrace);
+ session.logCallFrames(message.params.callFrames);
+ session.logAsyncStackTrace(message.params.asyncStackTrace);
InspectorTest.log('');
return message;
}
« no previous file with comments | « test/inspector/debugger/continue-to-location-expected.txt ('k') | test/inspector/debugger/destory-in-break-program.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698