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

Unified Diff: test/inspector/debugger/stepping-ignores-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-ignores-injected-script.js
diff --git a/test/inspector/debugger/stepping-ignores-injected-script.js b/test/inspector/debugger/stepping-ignores-injected-script.js
index 2b9e4aa7d7cf2f100160c79b79a8ec1a36b30d43..9021664a96c022f0eb43bb2c06516e85b1592718 100644
--- a/test/inspector/debugger/stepping-ignores-injected-script.js
+++ b/test/inspector/debugger/stepping-ignores-injected-script.js
@@ -2,8 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+let {session, contextGroup, Protocol} = InspectorTest.start('Tests that stepping ignores injected script');
+
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();
@@ -11,7 +13,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