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

Unified Diff: test/inspector/debugger/stepping-with-exposed-injected-script.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/stepping-with-exposed-injected-script.js
diff --git a/test/inspector/debugger/stepping-with-exposed-injected-script.js b/test/inspector/debugger/stepping-with-exposed-injected-script.js
index 54b93d54a4291d6180640b2dfe48d196d1d3f392..d608137c81214bb40b43318cb3630d07361a251f 100644
--- a/test/inspector/debugger/stepping-with-exposed-injected-script.js
+++ b/test/inspector/debugger/stepping-with-exposed-injected-script.js
@@ -3,8 +3,10 @@
// found in the LICENSE file.
// Flags: --expose-inspector-scripts
+let {session, contextGroup, Protocol} = InspectorTest.start('Tests that stepping does not ignore injected script when passed a flag');
+
Protocol.Debugger.onPaused(message => {
- let url = InspectorTest.session._scriptMap.get(message.params.callFrames[0].location.scriptId).url;
+ let url = session._scriptMap.get(message.params.callFrames[0].location.scriptId).url;
if (url !== 'test.js') {
InspectorTest.log('InjectedSciptSource on stack.');
InspectorTest.completeTest();
@@ -12,7 +14,7 @@ Protocol.Debugger.onPaused(message => {
Protocol.Debugger.stepInto();
});
-InspectorTest.setupScriptMap();
+session.setupScriptMap();
Protocol.Debugger.enable();
Protocol.Debugger.pause();
Protocol.Runtime.evaluate({expression: 'console.log(42)//# sourceURL=test.js'})

Powered by Google App Engine
This is Rietveld 408576698