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

Unified Diff: test/inspector/debugger/async-promise-late-then.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-instrumentation.js ('k') | test/inspector/debugger/async-set-timeout.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/debugger/async-promise-late-then.js
diff --git a/test/inspector/debugger/async-promise-late-then.js b/test/inspector/debugger/async-promise-late-then.js
index 83c610b921d2c18c30c3d0bb6cf3255d4c2fd6d6..cad3c7ed86f9821eb72cdbf2982fe77bd1deec98 100644
--- a/test/inspector/debugger/async-promise-late-then.js
+++ b/test/inspector/debugger/async-promise-late-then.js
@@ -3,9 +3,9 @@
// found in the LICENSE file.
// Flags: --expose-gc
-InspectorTest.log('Checks async stack for late .then handlers with gc');
+let {session, contextGroup, Protocol} = InspectorTest.start('Checks async stack for late .then handlers with gc');
-InspectorTest.addScript(`
+contextGroup.addScript(`
function foo1() {
gc();
debugger;
@@ -27,13 +27,13 @@ function test() {
}
//# sourceURL=test.js`, 8, 26);
-InspectorTest.setupScriptMap();
+session.setupScriptMap();
Protocol.Debugger.onPaused(message => {
- InspectorTest.logCallFrames(message.params.callFrames);
+ session.logCallFrames(message.params.callFrames);
var asyncStackTrace = message.params.asyncStackTrace;
while (asyncStackTrace) {
InspectorTest.log(`-- ${asyncStackTrace.description} --`);
- InspectorTest.logCallFrames(asyncStackTrace.callFrames);
+ session.logCallFrames(asyncStackTrace.callFrames);
asyncStackTrace = asyncStackTrace.parent;
}
InspectorTest.log('');
« no previous file with comments | « test/inspector/debugger/async-instrumentation.js ('k') | test/inspector/debugger/async-set-timeout.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698