| Index: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/click-gutter-breakpoint.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/click-gutter-breakpoint.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/click-gutter-breakpoint.html
|
| index 9f77daa5819dfcd52fe82365c0e8a13a33d21cf1..3cea1625004a713b2158eba003ccd15173d86128 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/click-gutter-breakpoint.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/click-gutter-breakpoint.html
|
| @@ -6,9 +6,11 @@
|
| <script>
|
| function test()
|
| {
|
| + var panel = WebInspector.panels.sources;
|
| +
|
| function clickCodeMirrorLineNumber(lineNumber)
|
| {
|
| - var element = Array.from(document.getElementsByClassName("CodeMirror-linenumber")).filter(x => x.textContent === (lineNumber + 1).toString())[0];
|
| + var element = Array.from(panel.contentElement.querySelectorAll(".CodeMirror-linenumber")).filter(x => x.textContent === (lineNumber + 1).toString())[0];
|
| if (!element) {
|
| InspectorTest.addResult("CodeMirror Gutter Not Found:" + lineNumber);
|
| InspectorTest.completeDebuggerTest();
|
| @@ -22,10 +24,6 @@ function test()
|
| }
|
|
|
| WebInspector.breakpointManager._storage._breakpoints = {};
|
| - var panel = WebInspector.panels.sources;
|
| - var scriptFormatter;
|
| - var formattedSourceFrame;
|
| -
|
| InspectorTest.startDebuggerTest(() => InspectorTest.showScriptSource("click-breakpoints.js", didShowScriptSource));
|
|
|
|
|
|
|