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

Side by Side Diff: test/inspector/debugger/step-into.js

Issue 2720713003: Adjust some tests to prepare enabling Ignition+TurboFan (Closed)
Patch Set: Turn off flag in this CL. Created 3 years, 9 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
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 // Flags: --turbo
6
5 InspectorTest.log('Checks possible break locations.'); 7 InspectorTest.log('Checks possible break locations.');
6 8
7 InspectorTest.setupScriptMap(); 9 InspectorTest.setupScriptMap();
8 Protocol.Debugger.onPaused(message => { 10 Protocol.Debugger.onPaused(message => {
9 var frames = message.params.callFrames; 11 var frames = message.params.callFrames;
10 if (frames.length === 1) { 12 if (frames.length === 1) {
11 Protocol.Debugger.stepInto(); 13 Protocol.Debugger.stepInto();
12 return; 14 return;
13 } 15 }
14 var scriptId = frames[0].location.scriptId; 16 var scriptId = frames[0].location.scriptId;
15 InspectorTest.log('break at:'); 17 InspectorTest.log('break at:');
16 InspectorTest.logSourceLocation(frames[0].location) 18 InspectorTest.logSourceLocation(frames[0].location)
17 .then(() => Protocol.Debugger.stepInto()); 19 .then(() => Protocol.Debugger.stepInto());
18 }); 20 });
19 21
20 InspectorTest.loadScript('test/inspector/debugger/resources/break-locations.js') ; 22 InspectorTest.loadScript('test/inspector/debugger/resources/break-locations.js') ;
21 23
22 Protocol.Debugger.enable(); 24 Protocol.Debugger.enable();
23 Protocol.Runtime.evaluate({ expression: 'Object.keys(this).filter(name => name.i ndexOf(\'test\') === 0)', returnByValue: true }) 25 Protocol.Runtime.evaluate({ expression: 'Object.keys(this).filter(name => name.i ndexOf(\'test\') === 0)', returnByValue: true })
24 .then(runTests); 26 .then(runTests);
25 27
26 function runTests(message) { 28 function runTests(message) {
27 var tests = message.result.result.value; 29 var tests = message.result.result.value;
28 InspectorTest.runTestSuite(tests.map(test => eval(`(function ${test}(next) { 30 InspectorTest.runTestSuite(tests.map(test => eval(`(function ${test}(next) {
29 Protocol.Runtime.evaluate({ expression: 'debugger; ${test}()', awaitPromise: ${test.indexOf('testPromise') === 0}}) 31 Protocol.Runtime.evaluate({ expression: 'debugger; ${test}()', awaitPromise: ${test.indexOf('testPromise') === 0}})
30 .then(next); 32 .then(next);
31 })`))); 33 })`)));
32 } 34 }
OLDNEW
« no previous file with comments | « test/inspector/debugger/get-possible-breakpoints-master-expected.txt ('k') | test/inspector/debugger/step-into-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698