Index: test/inspector/debugger/framework-break.js |
diff --git a/test/inspector/debugger/framework-break.js b/test/inspector/debugger/framework-break.js |
index 287de8a7b55f270a7ade6283971e88e809fa8e22..9b9fee6f3ea5d6148609bdd6e88b5b062e0adb8c 100644 |
--- a/test/inspector/debugger/framework-break.js |
+++ b/test/inspector/debugger/framework-break.js |
@@ -3,9 +3,9 @@ |
// found in the LICENSE file. |
// Flags: --allow-natives-syntax |
-InspectorTest.log('Checks that breaks in framework code correctly processed.'); |
+let {session, contextGroup, Protocol} = InspectorTest.start('Checks that breaks in framework code correctly processed.'); |
-InspectorTest.addScript(` |
+contextGroup.addScript(` |
function frameworkAssert() { |
console.assert(false); |
} |
@@ -69,7 +69,7 @@ function syncDOMBreakpointWithInlinedUserFrame() { |
//# sourceURL=framework.js`, 8, 26); |
-InspectorTest.addScript(` |
+contextGroup.addScript(` |
function throwUserException() { |
throw new Error(); |
} |
@@ -80,9 +80,9 @@ function userFunction() { |
//# sourceURL=user.js`, 64, 26) |
-InspectorTest.setupScriptMap(); |
+session.setupScriptMap(); |
Protocol.Debugger.onPaused(message => { |
- InspectorTest.logCallFrames(message.params.callFrames); |
+ session.logCallFrames(message.params.callFrames); |
InspectorTest.log(''); |
Protocol.Debugger.resume(); |
}); |
@@ -188,16 +188,16 @@ InspectorTest.runTestSuite([ |
}, |
function testAsyncDOMBreakpoint(next) { |
- InspectorTest.contextGroup.schedulePauseOnNextStatement('', ''); |
+ contextGroup.schedulePauseOnNextStatement('', ''); |
InspectorTest.log('> all frames in framework:'); |
Protocol.Runtime |
.evaluate( |
{expression: 'asyncDOMBreakpoint()//# sourceURL=framework.js'}) |
- .then(() => InspectorTest.contextGroup.cancelPauseOnNextStatement()) |
+ .then(() => contextGroup.cancelPauseOnNextStatement()) |
.then( |
() => Protocol.Runtime.evaluate( |
{expression: '42//# sourceURL=user.js'})) |
- .then(() => InspectorTest.contextGroup.schedulePauseOnNextStatement('', '')) |
+ .then(() => contextGroup.schedulePauseOnNextStatement('', '')) |
.then( |
() => Protocol.Runtime.evaluate( |
{expression: 'asyncDOMBreakpoint()//# sourceURL=user.js'})) |