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

Unified Diff: test/inspector/debugger/get-possible-breakpoints-restrict-to-function.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/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')
« no previous file with comments | « test/inspector/debugger/get-possible-breakpoints-master.js ('k') | test/inspector/debugger/inspector-break-api.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698