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; |
} |