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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js

Issue 2769843003: DevTools: split text_utils out of common module (Closed)
Patch Set: Created 3 years, 9 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: 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 841e43be43ad086a90c68d9562b0b7813939667a..9c99ef638afd3e735fb96da0f2f4fc37e8d58849 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
@@ -705,7 +705,7 @@ InspectorTest.dumpJavaScriptSourceFrameBreakpoints = function(sourceFrame)
var conditional = textEditor.hasLineClass(lineNumber, "cm-breakpoint-conditional")
InspectorTest.addResult("breakpoint at " + lineNumber + (disabled ? " disabled" : "") + (conditional ? " conditional" : ""));
- var range = new Common.TextRange(lineNumber, 0, lineNumber, textEditor.line(lineNumber).length);
+ var range = new TextUtils.TextRange(lineNumber, 0, lineNumber, textEditor.line(lineNumber).length);
var bookmarks = textEditor.bookmarks(range, Sources.JavaScriptSourceFrame.BreakpointDecoration._bookmarkSymbol);
bookmarks = bookmarks.filter(bookmark => !!bookmark.position());
bookmarks.sort((bookmark1, bookmark2) => bookmark1.position().startColumn - bookmark2.position().startColumn);
@@ -723,7 +723,7 @@ InspectorTest.clickJavaScriptSourceFrameBreakpoint = function(sourceFrame, lineN
{
var textEditor = sourceFrame._textEditor;
var lineLength = textEditor.line(lineNumber).length;
- var lineRange = new Common.TextRange(lineNumber, 0, lineNumber, lineLength);
+ var lineRange = new TextUtils.TextRange(lineNumber, 0, lineNumber, lineLength);
var bookmarks = textEditor.bookmarks(lineRange, Sources.JavaScriptSourceFrame.BreakpointDecoration._bookmarkSymbol);
bookmarks.sort((bookmark1, bookmark2) => bookmark1.position().startColumn - bookmark2.position().startColumn);
var bookmark = bookmarks[index];

Powered by Google App Engine
This is Rietveld 408576698