Index: test/inspector/debugger/get-possible-breakpoints-restrict-to-function.js |
diff --git a/test/inspector/debugger/get-possible-breakpoints-restrict-to-function.js b/test/inspector/debugger/get-possible-breakpoints-restrict-to-function.js |
index f5020eb64b3c46cc6e062dc2a3093b11a252ae17..27c65fe290836ddf699aabf4d9b52b16495de3a4 100644 |
--- a/test/inspector/debugger/get-possible-breakpoints-restrict-to-function.js |
+++ b/test/inspector/debugger/get-possible-breakpoints-restrict-to-function.js |
@@ -2,7 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-InspectorTest.log('Checks Debugger.getPossibleBreakpoints with ignoreNestedFunctions'); |
+let {session, contextGroup, Protocol} = InspectorTest.start('Checks Debugger.getPossibleBreakpoints with ignoreNestedFunctions'); |
var source = ` |
function test() { |
@@ -17,7 +17,7 @@ function test() { |
nested2(); |
} |
//# sourceURL=test.js`; |
-InspectorTest.addScript(source); |
+contextGroup.addScript(source); |
var scriptId; |
Protocol.Debugger.onceScriptParsed().then(message => { |
@@ -25,7 +25,7 @@ Protocol.Debugger.onceScriptParsed().then(message => { |
scriptId = message.params.scriptId; |
}).then(() => InspectorTest.runTestSuite(tests)); |
-InspectorTest.setupScriptMap(); |
+session.setupScriptMap(); |
Protocol.Debugger.onPaused(dumpBreakLocationInSourceAndResume); |
Protocol.Debugger.enable(); |
@@ -103,7 +103,7 @@ function dumpAllLocations(message) { |
} |
function dumpBreakLocationInSourceAndResume(message) { |
- InspectorTest.logCallFrames([ message.params.callFrames[0] ]); |
+ session.logCallFrames([ message.params.callFrames[0] ]); |
var location = message.params.callFrames[0].location; |
var sourceLines = source.split('\n') |