| Index: third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
|
| index 5765c5d525f7e7d9d239ec8f0c20db0955f52b91..3b20845fdfc605ac5ab712be6086a6856b1253c3 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
|
| @@ -720,14 +720,20 @@ InspectorTest.dumpJavaScriptSourceFrameBreakpoints = function(sourceFrame)
|
| }
|
| }
|
|
|
| -InspectorTest.clickJavaScriptSourceFrameBreakpoint = function(sourceFrame, lineNumber, index)
|
| +InspectorTest.clickJavaScriptSourceFrameBreakpoint = function(sourceFrame, lineNumber, index, next)
|
| {
|
| var textEditor = sourceFrame._textEditor;
|
| var lineLength = textEditor.line(lineNumber).length;
|
| var lineRange = new Common.TextRange(lineNumber, 0, lineNumber, lineLength);
|
| var bookmarks = textEditor.bookmarks(lineRange, Sources.JavaScriptSourceFrame.BreakpointDecoration._bookmarkSymbol);
|
| bookmarks.sort((bookmark1, bookmark2) => bookmark1.position().startColumn - bookmark2.position().startColumn);
|
| - bookmarks[index][Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymbolForTest].click();
|
| + var bookmark = bookmarks[index];
|
| + if (bookmark) {
|
| + bookmark[Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymbolForTest].click();
|
| + } else {
|
| + InspectorTest.addResult(`Could not click on Javascript breakpoint - lineNumber: ${lineNumber}, index: ${index}`);
|
| + next();
|
| + }
|
| }
|
|
|
| };
|
|
|