Index: test/inspector/debugger/step-into-next-script.js |
diff --git a/test/inspector/debugger/step-into-next-script.js b/test/inspector/debugger/step-into-next-script.js |
index 37436be1d53f795c3663a1659c998be0cced6222..80e9a9180fda704e4538fc09bebbea865de110b3 100644 |
--- a/test/inspector/debugger/step-into-next-script.js |
+++ b/test/inspector/debugger/step-into-next-script.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('Debugger breaks in next script after stepOut from previous one.'); |
+let {session, contextGroup, Protocol} = InspectorTest.start('Debugger breaks in next script after stepOut from previous one.'); |
-InspectorTest.addScript(` |
+contextGroup.addScript(` |
function test() { |
setTimeout('var a = 1;//# sourceURL=timeout1.js', 0); |
setTimeout(foo, 0); |
@@ -13,16 +13,16 @@ function test() { |
} |
//# sourceURL=foo.js`, 7, 26); |
-InspectorTest.addScript(` |
+contextGroup.addScript(` |
function foo() { |
return 42; |
} |
//# sourceURL=timeout2.js`) |
-InspectorTest.setupScriptMap(); |
+session.setupScriptMap(); |
var stepAction; |
Protocol.Debugger.onPaused(message => { |
- InspectorTest.logCallFrames(message.params.callFrames); |
+ session.logCallFrames(message.params.callFrames); |
InspectorTest.log(''); |
Protocol.Debugger[stepAction](); |
}); |
@@ -31,21 +31,21 @@ InspectorTest.runTestSuite([ |
function testStepOut(next) { |
stepAction = 'stepOut'; |
Protocol.Runtime.evaluate({ expression: 'test()' }) |
- .then(() => InspectorTest.waitPendingTasks()) |
+ .then(() => InspectorTest.waitForPendingTasks()) |
.then(next); |
}, |
function testStepOver(next) { |
stepAction = 'stepOver'; |
Protocol.Runtime.evaluate({ expression: 'test()' }) |
- .then(() => InspectorTest.waitPendingTasks()) |
+ .then(() => InspectorTest.waitForPendingTasks()) |
.then(next); |
}, |
function testStepInto(next) { |
stepAction = 'stepInto'; |
Protocol.Runtime.evaluate({ expression: 'test()' }) |
- .then(() => InspectorTest.waitPendingTasks()) |
+ .then(() => InspectorTest.waitForPendingTasks()) |
.then(next); |
} |
]); |