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

Unified Diff: test/inspector/debugger/framework-break.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/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'}))
« no previous file with comments | « test/inspector/debugger/eval-scopes-expected.txt ('k') | test/inspector/debugger/framework-nested-scheduled-break.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698