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

Side by Side Diff: test/inspector/debugger/step-into-nested-arrow.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 unified diff | Download patch
« no previous file with comments | « test/inspector/debugger/step-into.js ('k') | test/inspector/debugger/step-into-next-script.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 the V8 project authors. All rights reserved. 1 // Copyright 2017 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 InspectorTest.log( 5 let {session, contextGroup, Protocol} = InspectorTest.start(
6 'Checks that stepInto nested arrow function doesn\'t produce crash.'); 6 'Checks that stepInto nested arrow function doesn\'t produce crash.');
7 7
8 InspectorTest.setupScriptMap(); 8 session.setupScriptMap();
9 InspectorTest.addScript(` 9 contextGroup.addScript(`
10 const rec = (x) => (y) => 10 const rec = (x) => (y) =>
11 rec(); 11 rec();
12 //# sourceURL=test.js`); 12 //# sourceURL=test.js`);
13 13
14 Protocol.Debugger.onPaused(message => { 14 Protocol.Debugger.onPaused(message => {
15 InspectorTest.log("paused"); 15 InspectorTest.log("paused");
16 InspectorTest.logCallFrames(message.params.callFrames); 16 session.logCallFrames(message.params.callFrames);
17 Protocol.Debugger.stepInto(); 17 Protocol.Debugger.stepInto();
18 }) 18 })
19 19
20 Protocol.Debugger.enable(); 20 Protocol.Debugger.enable();
21 Protocol.Debugger.setBreakpointByUrl({ url: 'test.js', lineNumber: 2 }) 21 Protocol.Debugger.setBreakpointByUrl({ url: 'test.js', lineNumber: 2 })
22 .then(() => Protocol.Runtime.evaluate({ expression: 'rec(5)(4)' })) 22 .then(() => Protocol.Runtime.evaluate({ expression: 'rec(5)(4)' }))
23 .then(InspectorTest.completeTest); 23 .then(InspectorTest.completeTest);
OLDNEW
« no previous file with comments | « test/inspector/debugger/step-into.js ('k') | test/inspector/debugger/step-into-next-script.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698