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

Unified Diff: test/inspector/debugger/step-out-async-await.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/step-out-async-await.js
diff --git a/test/inspector/debugger/step-out-async-await.js b/test/inspector/debugger/step-out-async-await.js
index 3b249dc7f368296dfacfd1e7f58aabd5bf1fecf5..ff83b82e785a140897059638a0d4b306f944e05c 100644
--- a/test/inspector/debugger/step-out-async-await.js
+++ b/test/inspector/debugger/step-out-async-await.js
@@ -6,9 +6,9 @@
// of async generator we should break at next instruction of resumed generator
// instead of next scheduled microtask.
-InspectorTest.log('StepOut from return position of async function.');
+let {session, contextGroup, Protocol} = InspectorTest.start('StepOut from return position of async function.');
-InspectorTest.addScript(`
+contextGroup.addScript(`
async function testFunction() {
async function foo() {
var p = Promise.resolve();
@@ -21,7 +21,7 @@ InspectorTest.addScript(`
}
`);
-InspectorTest.setupScriptMap();
+session.setupScriptMap();
Protocol.Debugger.enable();
InspectorTest.runAsyncTestSuite([
async function testStepInto() {
@@ -68,5 +68,5 @@ InspectorTest.runAsyncTestSuite([
]);
function logPauseLocation(message) {
- return InspectorTest.logSourceLocation(message.params.callFrames[0].location);
+ return session.logSourceLocation(message.params.callFrames[0].location);
}
« no previous file with comments | « test/inspector/debugger/step-into-next-script.js ('k') | test/inspector/debugger/step-over-another-context-group.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698