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

Unified Diff: test/inspector/debugger/async-stack-created-frame.js

Issue 2891213002: [inspector] Refactor protocol-test.js (Closed)
Patch Set: 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/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();
});

Powered by Google App Engine
This is Rietveld 408576698