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

Unified Diff: test/inspector/debugger/set-script-source-exception.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/set-script-source-exception.js
diff --git a/test/inspector/debugger/set-script-source-exception.js b/test/inspector/debugger/set-script-source-exception.js
index d3082789f2a10e5749966e1847b0ecf46dc3452e..627aa7ec1e238ba38bc1cd6d5ff368f37bc37d98 100644
--- a/test/inspector/debugger/set-script-source-exception.js
+++ b/test/inspector/debugger/set-script-source-exception.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('Check that setScriptSource completes correctly when an exception is thrown.');
+let {session, contextGroup, Protocol} = InspectorTest.start('Check that setScriptSource completes correctly when an exception is thrown.');
Protocol.Debugger.enable();
@@ -18,6 +18,6 @@ InspectorTest.runTestSuite([
.then(message => Protocol.Debugger.setScriptSource({ scriptId: message.params.scriptId, scriptSource: 'a # b' }))
.then(InspectorTest.logMessage)
.then(next);
- InspectorTest.addScript('function foo() {}');
+ contextGroup.addScript('function foo() {}');
}
]);
« no previous file with comments | « test/inspector/debugger/set-script-source.js ('k') | test/inspector/debugger/set-script-source-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698