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

Unified Diff: test/inspector/debugger/step-into.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/step-into.js
diff --git a/test/inspector/debugger/step-into.js b/test/inspector/debugger/step-into.js
index e08707c9fc8d38ec049109d132e520a7e9ac0cd1..b0b83b3d5916dce7a522ca2496ea4974f5717d7e 100644
--- a/test/inspector/debugger/step-into.js
+++ b/test/inspector/debugger/step-into.js
@@ -4,9 +4,9 @@
// Flags: --turbo
-InspectorTest.log('Checks possible break locations.');
+let {session, contextGroup, Protocol} = InspectorTest.start('Checks possible break locations.');
-InspectorTest.setupScriptMap();
+session.setupScriptMap();
Protocol.Debugger.onPaused(message => {
var frames = message.params.callFrames;
if (frames.length === 1) {
@@ -15,11 +15,11 @@ Protocol.Debugger.onPaused(message => {
}
var scriptId = frames[0].location.scriptId;
InspectorTest.log('break at:');
- InspectorTest.logSourceLocation(frames[0].location)
+ session.logSourceLocation(frames[0].location)
.then(() => Protocol.Debugger.stepInto());
});
-InspectorTest.loadScript('test/inspector/debugger/resources/break-locations.js');
+contextGroup.loadScript('test/inspector/debugger/resources/break-locations.js');
Protocol.Debugger.enable();
Protocol.Runtime.evaluate({ expression: 'Object.keys(this).filter(name => name.indexOf(\'test\') === 0)', returnByValue: true })

Powered by Google App Engine
This is Rietveld 408576698