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

Unified Diff: test/inspector/debugger/es6-module-set-script-source.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/es6-module-script-parsed.js ('k') | test/inspector/debugger/eval-scopes.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/debugger/es6-module-set-script-source.js
diff --git a/test/inspector/debugger/es6-module-set-script-source.js b/test/inspector/debugger/es6-module-set-script-source.js
index 5e191ca8a87fa6e533202aa9f360c4496749adf4..81d97b6d783e96db094e5fc6cf73503c9a2004b1 100644
--- a/test/inspector/debugger/es6-module-set-script-source.js
+++ b/test/inspector/debugger/es6-module-set-script-source.js
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-InspectorTest.log('Checks that Debugger.setScriptSource doesn\'t crash with modules');
+let {session, contextGroup, Protocol} = InspectorTest.start('Checks that Debugger.setScriptSource doesn\'t crash with modules');
var module1 = `
export function foo() {
@@ -25,9 +25,9 @@ Protocol.Debugger.onScriptParsed(message => {
module1Id = message.params.scriptId;
});
Protocol.Debugger.enable()
- .then(() => InspectorTest.addModule(module1, 'module1'))
- .then(() => InspectorTest.addModule(module2, 'module2'))
- .then(() => InspectorTest.waitPendingTasks())
+ .then(() => contextGroup.addModule(module1, 'module1'))
+ .then(() => contextGroup.addModule(module2, 'module2'))
+ .then(() => InspectorTest.waitForPendingTasks())
.then(() => Protocol.Debugger.setScriptSource({ scriptId: module1Id, scriptSource: editedModule1 }))
.then(InspectorTest.logMessage)
.then(InspectorTest.completeTest);
« no previous file with comments | « test/inspector/debugger/es6-module-script-parsed.js ('k') | test/inspector/debugger/eval-scopes.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698