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

Unified Diff: test/inspector/debugger/schedule-step-into-async.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/schedule-step-into-async.js
diff --git a/test/inspector/debugger/schedule-step-into-async.js b/test/inspector/debugger/schedule-step-into-async.js
index 1556e8a55a9c4030e106157f760fda20dcbdec4a..c4dfb73992144e38ba107b240a74834557ee55e0 100644
--- a/test/inspector/debugger/schedule-step-into-async.js
+++ b/test/inspector/debugger/schedule-step-into-async.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 Debugger.scheduleStepIntoAsync.');
+let {session, contextGroup, Protocol} = InspectorTest.start('Checks Debugger.scheduleStepIntoAsync.');
-InspectorTest.addScript(`
+contextGroup.addScript(`
function testNoScheduledTask() {
debugger;
return 42;
@@ -47,7 +47,7 @@ function testBlackboxedCreatePromise() {
}
//# sourceURL=test.js`);
-InspectorTest.addScript(`
+contextGroup.addScript(`
function createPromise() {
return Promise.resolve().then(v => v * 3).then(v => v * 4);
@@ -55,7 +55,7 @@ function createPromise() {
//# sourceURL=framework.js`)
-InspectorTest.setupScriptMap();
+session.setupScriptMap();
Protocol.Debugger.enable();
InspectorTest.runAsyncTestSuite([
@@ -154,6 +154,6 @@ InspectorTest.runAsyncTestSuite([
async function waitPauseAndDumpLocation() {
var message = await Protocol.Debugger.oncePaused();
InspectorTest.log('paused at:');
- InspectorTest.logSourceLocation(message.params.callFrames[0].location);
+ session.logSourceLocation(message.params.callFrames[0].location);
return message;
}
« no previous file with comments | « test/inspector/debugger/return-break-locations.js ('k') | test/inspector/debugger/schedule-step-into-async-set-timeout.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698