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

Unified Diff: test/inspector/debugger/step-snapshot.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-snapshot.js
diff --git a/test/inspector/debugger/step-snapshot.js b/test/inspector/debugger/step-snapshot.js
index 6e9ee8e7d18b2bf137e2a3f693ffcfe808664028..a4ecbf2f285cf0a6ecbc6082ffe7d94a18606b42 100644
--- a/test/inspector/debugger/step-snapshot.js
+++ b/test/inspector/debugger/step-snapshot.js
@@ -6,9 +6,10 @@
// Flags: --embed 'function c(f, ...args) { return f(...args); }'
-InspectorTest.setupScriptMap();
+let {session, contextGroup, Protocol} = InspectorTest.start('Tests that stepping works on snapshotted function');
+session.setupScriptMap();
-InspectorTest.addScript(`
+contextGroup.addScript(`
function test() {
function f(x) {
return x * 2;
@@ -21,7 +22,7 @@ function test() {
Protocol.Debugger.onPaused(message => {
InspectorTest.log("paused");
var frames = message.params.callFrames;
- InspectorTest.logSourceLocation(frames[0].location);
+ session.logSourceLocation(frames[0].location);
Protocol.Debugger.stepInto();
})
« no previous file with comments | « test/inspector/debugger/step-over-caught-exception-expected.txt ('k') | test/inspector/debugger/step-snapshot-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698