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

Unified Diff: test/inspector/debugger/step-into-next-script.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
« no previous file with comments | « test/inspector/debugger/step-into-nested-arrow.js ('k') | test/inspector/debugger/step-out-async-await.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/debugger/step-into-next-script.js
diff --git a/test/inspector/debugger/step-into-next-script.js b/test/inspector/debugger/step-into-next-script.js
index 37436be1d53f795c3663a1659c998be0cced6222..80e9a9180fda704e4538fc09bebbea865de110b3 100644
--- a/test/inspector/debugger/step-into-next-script.js
+++ b/test/inspector/debugger/step-into-next-script.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('Debugger breaks in next script after stepOut from previous one.');
+let {session, contextGroup, Protocol} = InspectorTest.start('Debugger breaks in next script after stepOut from previous one.');
-InspectorTest.addScript(`
+contextGroup.addScript(`
function test() {
setTimeout('var a = 1;//# sourceURL=timeout1.js', 0);
setTimeout(foo, 0);
@@ -13,16 +13,16 @@ function test() {
}
//# sourceURL=foo.js`, 7, 26);
-InspectorTest.addScript(`
+contextGroup.addScript(`
function foo() {
return 42;
}
//# sourceURL=timeout2.js`)
-InspectorTest.setupScriptMap();
+session.setupScriptMap();
var stepAction;
Protocol.Debugger.onPaused(message => {
- InspectorTest.logCallFrames(message.params.callFrames);
+ session.logCallFrames(message.params.callFrames);
InspectorTest.log('');
Protocol.Debugger[stepAction]();
});
@@ -31,21 +31,21 @@ InspectorTest.runTestSuite([
function testStepOut(next) {
stepAction = 'stepOut';
Protocol.Runtime.evaluate({ expression: 'test()' })
- .then(() => InspectorTest.waitPendingTasks())
+ .then(() => InspectorTest.waitForPendingTasks())
.then(next);
},
function testStepOver(next) {
stepAction = 'stepOver';
Protocol.Runtime.evaluate({ expression: 'test()' })
- .then(() => InspectorTest.waitPendingTasks())
+ .then(() => InspectorTest.waitForPendingTasks())
.then(next);
},
function testStepInto(next) {
stepAction = 'stepInto';
Protocol.Runtime.evaluate({ expression: 'test()' })
- .then(() => InspectorTest.waitPendingTasks())
+ .then(() => InspectorTest.waitForPendingTasks())
.then(next);
}
]);
« no previous file with comments | « test/inspector/debugger/step-into-nested-arrow.js ('k') | test/inspector/debugger/step-out-async-await.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698