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

Unified Diff: test/inspector/debugger/async-stack-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
« no previous file with comments | « test/inspector/debugger/async-set-timeout.js ('k') | test/inspector/debugger/async-stack-created-frame.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/debugger/async-stack-await.js
diff --git a/test/inspector/debugger/async-stack-await.js b/test/inspector/debugger/async-stack-await.js
index 155ff4a978f388f2c294e6b4178022c1b472e27c..8f4b16280734fd9f9ec4f9a26574e462e41d0da2 100644
--- a/test/inspector/debugger/async-stack-await.js
+++ b/test/inspector/debugger/async-stack-await.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 that async stacks works for async/await');
+let {session, contextGroup, Protocol} = InspectorTest.start('Checks that async stacks works for async/await');
-InspectorTest.addScript(`
+contextGroup.addScript(`
async function foo1() {
debugger;
return Promise.resolve();
@@ -25,10 +25,10 @@ async function test() {
}
//# sourceURL=test.js`, 7, 26);
-InspectorTest.setupScriptMap();
+session.setupScriptMap();
Protocol.Debugger.onPaused(message => {
- InspectorTest.logCallFrames(message.params.callFrames);
- InspectorTest.logAsyncStackTrace(message.params.asyncStackTrace);
+ session.logCallFrames(message.params.callFrames);
+ session.logAsyncStackTrace(message.params.asyncStackTrace);
InspectorTest.log('');
Protocol.Debugger.resume();
});
« no previous file with comments | « test/inspector/debugger/async-set-timeout.js ('k') | test/inspector/debugger/async-stack-created-frame.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698