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

Unified Diff: test/inspector/debugger/get-possible-breakpoints-restrict-to-function.js

Issue 2728563002: [inspector] added type of break location into getPossibleBreakpoints output (Closed)
Patch Set: Created 3 years, 10 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/get-possible-breakpoints-restrict-to-function.js
diff --git a/test/inspector/debugger/get-possible-breakpoints-restrict-to-function.js b/test/inspector/debugger/get-possible-breakpoints-restrict-to-function.js
index 1ce440594d127cd471e963f94e2e4f969166d6bc..a2fd42afe328c99ae25fae49885df4f1152f613e 100644
--- a/test/inspector/debugger/get-possible-breakpoints-restrict-to-function.js
+++ b/test/inspector/debugger/get-possible-breakpoints-restrict-to-function.js
@@ -65,7 +65,7 @@ function location(lineNumber, columnNumber) {
function setAllBreakpoints(message) {
var promises = [];
for (var location of message.result.locations)
- promises.push(Protocol.Debugger.setBreakpoint({ location: location }).then(checkBreakpoint));
+ promises.push(Protocol.Debugger.setBreakpoint({ location: location.location }).then(checkBreakpoint));
return Promise.all(promises);
}
@@ -90,8 +90,8 @@ function dumpAllLocations(message) {
var sourceLines = source.split('\n')
var lineOffsets = Array(sourceLines.length).fill(0);
for (var location of message.result.locations) {
- var lineNumber = location.lineNumber;
- var columnNumber = location.columnNumber;
+ var lineNumber = location.location.lineNumber;
+ var columnNumber = location.location.columnNumber;
var line = sourceLines[lineNumber] || '';
var offset = lineOffsets[lineNumber];
line = line.slice(0, columnNumber + offset) + '#' + line.slice(columnNumber + offset);

Powered by Google App Engine
This is Rietveld 408576698