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 d7ca10400366f84b293fa84c4d9a0f2907c3627f..0887c74153910dfb0b5f9777d23cfad1b7e75871 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js |
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js |
@@ -514,9 +514,9 @@ InspectorTest.createScriptMock = function(url, startLine, startColumn, isContent |
target = target || WebInspector.targetManager.mainTarget(); |
var debuggerModel = WebInspector.DebuggerModel.fromTarget(target); |
var scriptId = ++InspectorTest._lastScriptId + ""; |
- var lineCount = source.lineEndings().length; |
+ var lineCount = source.computeLineEndings().length; |
var endLine = startLine + lineCount - 1; |
- var endColumn = lineCount === 1 ? startColumn + source.length : source.length - source.lineEndings()[lineCount - 2]; |
+ var endColumn = lineCount === 1 ? startColumn + source.length : source.length - source.computeLineEndings()[lineCount - 2]; |
var hasSourceURL = !!source.match(/\/\/#\ssourceURL=\s*(\S*?)\s*$/m) || !!source.match(/\/\/@\ssourceURL=\s*(\S*?)\s*$/m); |
var script = new WebInspector.Script(debuggerModel, scriptId, url, startLine, startColumn, endLine, endColumn, 0, "", isContentScript, false, false, undefined, hasSourceURL); |
script.requestContent = function() |