OLD | NEW |
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 Debugger.getPossibleBreakpoints'); | 7 InspectorTest.log('Checks Debugger.getPossibleBreakpoints'); |
6 | 8 |
7 var source = utils.read('test/inspector/debugger/resources/break-locations.js'); | 9 var source = utils.read('test/inspector/debugger/resources/break-locations.js'); |
8 InspectorTest.addScript(source); | 10 InspectorTest.addScript(source); |
9 | 11 |
10 Protocol.Debugger.onceScriptParsed() | 12 Protocol.Debugger.onceScriptParsed() |
11 .then(message => Protocol.Debugger.getPossibleBreakpoints({ start: { lineNumbe
r: 0, columnNumber : 0, scriptId: message.params.scriptId }})) | 13 .then(message => Protocol.Debugger.getPossibleBreakpoints({ start: { lineNumbe
r: 0, columnNumber : 0, scriptId: message.params.scriptId }})) |
12 .then(dumpAllLocations) | 14 .then(dumpAllLocations) |
13 .then(InspectorTest.completeTest); | 15 .then(InspectorTest.completeTest); |
14 Protocol.Debugger.enable(); | 16 Protocol.Debugger.enable(); |
(...skipping 17 matching lines...) Expand all Loading... |
32 InspectorTest.log(lines.join('\n')); | 34 InspectorTest.log(lines.join('\n')); |
33 return message; | 35 return message; |
34 } | 36 } |
35 | 37 |
36 function locationMark(type) { | 38 function locationMark(type) { |
37 if (type === 'return') return '|R|'; | 39 if (type === 'return') return '|R|'; |
38 if (type === 'call') return '|C|'; | 40 if (type === 'call') return '|C|'; |
39 if (type === 'debuggerStatement') return '|D|'; | 41 if (type === 'debuggerStatement') return '|D|'; |
40 return '|_|'; | 42 return '|_|'; |
41 } | 43 } |
OLD | NEW |