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

Unified Diff: test/inspector/debugger/es6-module-script-parsed.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/es6-module-script-parsed.js
diff --git a/test/inspector/debugger/es6-module-script-parsed.js b/test/inspector/debugger/es6-module-script-parsed.js
index e8fd8c69d1a55436eb7e945893f85ae426beaa11..94b623d0e9216daf9e9cb3219d610d44250f721b 100644
--- a/test/inspector/debugger/es6-module-script-parsed.js
+++ b/test/inspector/debugger/es6-module-script-parsed.js
@@ -2,15 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-InspectorTest.log('Debugger.scriptParsed and Debugger.scriptFailedToParse with ES6 module');
+let {session, contextGroup, Protocol} = InspectorTest.start('Debugger.scriptParsed and Debugger.scriptFailedToParse with ES6 module');
let moduleSource = `
export function foo() {
return 42;
}`;
-InspectorTest.addModule(moduleSource, 'module1.js');
-InspectorTest.addModule('}', 'module-with-syntax-error-1.js');
+contextGroup.addModule(moduleSource, 'module1.js');
+contextGroup.addModule('}', 'module-with-syntax-error-1.js');
Protocol.Debugger.onScriptParsed(InspectorTest.logMessage);
Protocol.Debugger.onScriptFailedToParse(InspectorTest.logMessage);
@@ -21,8 +21,8 @@ InspectorTest.runTestSuite([
},
function testScriptEventsWhenDebuggerIsEnabled(next) {
- InspectorTest.addModule(moduleSource, 'module2.js');
- InspectorTest.addModule('}', 'module-with-syntax-error-2.js');
- InspectorTest.waitPendingTasks().then(next);
+ contextGroup.addModule(moduleSource, 'module2.js');
+ contextGroup.addModule('}', 'module-with-syntax-error-2.js');
+ InspectorTest.waitForPendingTasks().then(next);
}
]);
« no previous file with comments | « test/inspector/debugger/doesnt-step-into-injected-script.js ('k') | test/inspector/debugger/es6-module-set-script-source.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698