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

Unified Diff: test/inspector/debugger/framework-precise-ranges.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-precise-ranges.js
diff --git a/test/inspector/debugger/framework-precise-ranges.js b/test/inspector/debugger/framework-precise-ranges.js
index bbc8ebdb9e68260d5bd4fbc7c2dd626782a2de95..4f76033a96973208198e87e020f4d4ea2f537c35 100644
--- a/test/inspector/debugger/framework-precise-ranges.js
+++ b/test/inspector/debugger/framework-precise-ranges.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('Checks framework debugging with blackboxed ranges.');
+let {session, contextGroup, Protocol} = InspectorTest.start('Checks framework debugging with blackboxed ranges.');
-InspectorTest.addScript(
+contextGroup.addScript(
`
function foo() {
return boo();
@@ -18,9 +18,9 @@ function testFunction() {
//# sourceURL=test.js`,
7, 26);
-InspectorTest.setupScriptMap();
+session.setupScriptMap();
Protocol.Debugger.onPaused(message => {
- InspectorTest.logCallFrames(message.params.callFrames);
+ session.logCallFrames(message.params.callFrames);
InspectorTest.log('');
Protocol.Debugger.stepInto();
});
@@ -64,7 +64,7 @@ var testSuite = [
];
function testPositions(positions) {
- InspectorTest.contextGroup.schedulePauseOnNextStatement('', '');
+ contextGroup.schedulePauseOnNextStatement('', '');
return Protocol.Debugger
.setBlackboxedRanges({scriptId: scriptId, positions: positions})
.then(InspectorTest.logMessage)
« no previous file with comments | « test/inspector/debugger/framework-nested-scheduled-break.js ('k') | test/inspector/debugger/framework-stepping.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698