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

Unified Diff: test/inspector/debugger/async-set-timeout.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-promise-late-then.js ('k') | test/inspector/debugger/async-stack-await.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/debugger/async-set-timeout.js
diff --git a/test/inspector/debugger/async-set-timeout.js b/test/inspector/debugger/async-set-timeout.js
index 31712329d37c4ac1326716295b6d12076d9bf611..30096b637f6619942e5d1807d2488a3339dd3538 100644
--- a/test/inspector/debugger/async-set-timeout.js
+++ b/test/inspector/debugger/async-set-timeout.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 stack contains setTimeout');
+let {session, contextGroup, Protocol} = InspectorTest.start('Checks that async stack contains setTimeout');
-InspectorTest.addScript(`
+contextGroup.addScript(`
var resolveCallback;
function foo1() {
function inner1() {
@@ -29,13 +29,13 @@ function foo3() {
}
//# sourceURL=test.js`, 7, 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-promise-late-then.js ('k') | test/inspector/debugger/async-stack-await.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698