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

Unified Diff: test/inspector/debugger/schedule-step-into-async-set-timeout.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-set-timeout.js
diff --git a/test/inspector/debugger/schedule-step-into-async-set-timeout.js b/test/inspector/debugger/schedule-step-into-async-set-timeout.js
index f6ffe6e0a7d9a5eaa689aa8d96363d863e6e06a1..f2171a5037502264d02936d631bcae21b73ac53c 100644
--- a/test/inspector/debugger/schedule-step-into-async-set-timeout.js
+++ b/test/inspector/debugger/schedule-step-into-async-set-timeout.js
@@ -2,8 +2,8 @@
// 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 with setTimeout.');
-InspectorTest.setupScriptMap();
+let {session, contextGroup, Protocol} = InspectorTest.start('Checks Debugger.scheduleStepIntoAsync with setTimeout.');
+session.setupScriptMap();
Protocol.Debugger.enable();
InspectorTest.runAsyncTestSuite([
async function testSetTimeout() {
@@ -42,7 +42,7 @@ InspectorTest.runAsyncTestSuite([
Protocol.Debugger.stepOver();
await waitPauseAndDumpLocation();
await Protocol.Debugger.resume();
- await InspectorTest.waitPendingTasks();
+ await InspectorTest.waitForPendingTasks();
},
async function testSetTimeoutWithoutJS() {
@@ -70,6 +70,6 @@ InspectorTest.runAsyncTestSuite([
async function waitPauseAndDumpLocation() {
var message = await Protocol.Debugger.oncePaused();
InspectorTest.log('paused at:');
- await InspectorTest.logSourceLocation(message.params.callFrames[0].location);
+ await session.logSourceLocation(message.params.callFrames[0].location);
return message;
}
« no previous file with comments | « test/inspector/debugger/schedule-step-into-async.js ('k') | test/inspector/debugger/scope-skip-variables-with-empty-name.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698