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

Unified Diff: test/inspector/debugger/async-stack-created-frame.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-await.js ('k') | test/inspector/debugger/async-stack-for-promise.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/debugger/async-stack-created-frame.js
diff --git a/test/inspector/debugger/async-stack-created-frame.js b/test/inspector/debugger/async-stack-created-frame.js
index c6e01e3bdba4bcd5b49db4c08ef87c25bdd1eab2..0f2c7a1e78db0ab192f494f7c1d801e260a5a43f 100644
--- a/test/inspector/debugger/async-stack-created-frame.js
+++ b/test/inspector/debugger/async-stack-created-frame.js
@@ -3,9 +3,9 @@
// found in the LICENSE file.
// TODO(kozyatinskiy): fix this test.
-InspectorTest.log('Checks created frame for async call chain');
+let {session, contextGroup, Protocol} = InspectorTest.start('Checks created frame for async call chain');
-InspectorTest.addScript(
+contextGroup.addScript(
`
function foo1() {
debugger;
@@ -77,10 +77,10 @@ function setTimeouts() {
//# sourceURL=test.js`,
8, 4);
-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-await.js ('k') | test/inspector/debugger/async-stack-for-promise.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698