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

Unified Diff: test/inspector/debugger/stepping-and-break-program-api.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/stepping-and-break-program-api.js
diff --git a/test/inspector/debugger/stepping-and-break-program-api.js b/test/inspector/debugger/stepping-and-break-program-api.js
index b9b5acefc31730dedf04963aaf556cf081f6e78c..f54bad827c2661cfbb5ccd43f8ed3aaa48fc5dc8 100644
--- a/test/inspector/debugger/stepping-and-break-program-api.js
+++ b/test/inspector/debugger/stepping-and-break-program-api.js
@@ -2,15 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-InspectorTest.log('Checks that stepping is cleared after breakProgram.');
+let {session, contextGroup, Protocol} = InspectorTest.start('Checks that stepping is cleared after breakProgram.');
-InspectorTest.addScript(`
+contextGroup.addScript(`
function callBreakProgram() {
debugger;
inspector.breakProgram('reason', '');
}`);
-InspectorTest.setupScriptMap();
+session.setupScriptMap();
(async function test() {
Protocol.Debugger.enable();
Protocol.Runtime.evaluate({expression: 'callBreakProgram();'});
@@ -29,6 +29,6 @@ InspectorTest.setupScriptMap();
async function waitPauseAndDumpLocation() {
var message = await Protocol.Debugger.oncePaused();
InspectorTest.log('paused at:');
- InspectorTest.logSourceLocation(message.params.callFrames[0].location);
+ session.logSourceLocation(message.params.callFrames[0].location);
return message;
}

Powered by Google App Engine
This is Rietveld 408576698