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

Unified Diff: test/inspector/debugger/async-stack-for-promise.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-stack-created-frame.js ('k') | test/inspector/debugger/break-on-exception.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/debugger/async-stack-for-promise.js
diff --git a/test/inspector/debugger/async-stack-for-promise.js b/test/inspector/debugger/async-stack-for-promise.js
index 9865d7a76760298b7fde738e09579eb79d861cc1..198c971e128014b5f9b40ae8866f35b4845ef875 100644
--- a/test/inspector/debugger/async-stack-for-promise.js
+++ b/test/inspector/debugger/async-stack-for-promise.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 chains for promises are correct.');
+let {session, contextGroup, Protocol} = InspectorTest.start('Checks that async chains for promises are correct.');
-InspectorTest.addScript(`
+contextGroup.addScript(`
function foo1() {
debugger;
}
@@ -219,10 +219,10 @@ function reject() {
//# 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-stack-created-frame.js ('k') | test/inspector/debugger/break-on-exception.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698