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

Unified Diff: test/inspector/debugger/async-for-await-of-promise-stack.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
Index: test/inspector/debugger/async-for-await-of-promise-stack.js
diff --git a/test/inspector/debugger/async-for-await-of-promise-stack.js b/test/inspector/debugger/async-for-await-of-promise-stack.js
index 2ed886f18e86215f6e64e91562df9bc13b9d844d..6a2f4ce9720f38ae7772d55cf798db916470bd82 100644
--- a/test/inspector/debugger/async-for-await-of-promise-stack.js
+++ b/test/inspector/debugger/async-for-await-of-promise-stack.js
@@ -4,9 +4,9 @@
// Flags: --harmony-async-iteration
-InspectorTest.log('Checks that async chains for for-await-of are correct.');
+let {session, contextGroup, Protocol} = InspectorTest.start('Checks that async chains for for-await-of are correct.');
-InspectorTest.addScript(`
+contextGroup.addScript(`
function Debugger(value) {
debugger;
@@ -128,10 +128,10 @@ async function CaughtThrowOnBreak() {
}
//# sourceURL=test.js`, 9, 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-console-count-doesnt-crash.js ('k') | test/inspector/debugger/async-instrumentation.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698