Index: Source/devtools/front_end/sources/JavaScriptBreakpointsSidebarPane.js |
diff --git a/Source/devtools/front_end/sources/JavaScriptBreakpointsSidebarPane.js b/Source/devtools/front_end/sources/JavaScriptBreakpointsSidebarPane.js |
index 093d128a648073e600ef6f87cd831e116e301262..acee9f857a2a89ddf6f93eb6cd5a15790610bf3f 100644 |
--- a/Source/devtools/front_end/sources/JavaScriptBreakpointsSidebarPane.js |
+++ b/Source/devtools/front_end/sources/JavaScriptBreakpointsSidebarPane.js |
@@ -83,6 +83,7 @@ WebInspector.JavaScriptBreakpointsSidebarPane.prototype = { |
/** |
* @param {?string} content |
+ * @this {WebInspector.JavaScriptBreakpointsSidebarPane} |
*/ |
function didRequestContent(content) |
{ |
@@ -95,9 +96,10 @@ WebInspector.JavaScriptBreakpointsSidebarPane.prototype = { |
var snippetStartIndex = columnNumber > 100 ? columnNumber : 0; |
snippetElement.textContent = lineText.substr(snippetStartIndex).trimEnd(maxSnippetLength); |
} |
+ this.didReceiveBreakpointLineForTest(uiLocation.uiSourceCode); |
} |
- uiLocation.uiSourceCode.requestContent(didRequestContent); |
+ uiLocation.uiSourceCode.requestContent(didRequestContent.bind(this)); |
element._data = uiLocation; |
var currentElement = this.listElement.firstChild; |
@@ -115,6 +117,13 @@ WebInspector.JavaScriptBreakpointsSidebarPane.prototype = { |
}, |
/** |
+ * @param {!WebInspector.UISourceCode} uiSourceCode |
+ */ |
+ didReceiveBreakpointLineForTest: function(uiSourceCode) |
+ { |
+ }, |
+ |
+ /** |
* @param {!WebInspector.Event} event |
*/ |
_breakpointRemoved: function(event) |