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

Unified Diff: third_party/WebKit/LayoutTests/inspector/editor/editor-test.js

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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/inspector/editor/editor-test.js
diff --git a/third_party/WebKit/LayoutTests/inspector/editor/editor-test.js b/third_party/WebKit/LayoutTests/inspector/editor/editor-test.js
index 4fe9ae1e47a92997b94dc6e82380d97585cb3e70..7fc0d211797d305e841e397b127db56843f0734b 100644
--- a/third_party/WebKit/LayoutTests/inspector/editor/editor-test.js
+++ b/third_party/WebKit/LayoutTests/inspector/editor/editor-test.js
@@ -3,11 +3,11 @@ function initialize_EditorTests()
InspectorTest.createTestEditor = function(clientHeight, textEditorDelegate)
{
- var textEditor = new WebInspector.SourcesTextEditor(textEditorDelegate || new WebInspector.SourcesTextEditorDelegate());
+ var textEditor = new SourceFrame.SourcesTextEditor(textEditorDelegate || new SourceFrame.SourcesTextEditorDelegate());
clientHeight = clientHeight || 100;
textEditor.element.style.height = clientHeight + "px";
textEditor.element.style.flex = "none";
- textEditor.show(WebInspector.inspectorView.element);
+ textEditor.show(UI.inspectorView.element);
return textEditor;
};
@@ -22,7 +22,7 @@ function textWithSelection(text, selections)
}
var lines = text.split("\n");
- selections.sort(WebInspector.TextRange.comparator);
+ selections.sort(Common.TextRange.comparator);
for (var i = selections.length - 1; i >= 0; --i) {
var selection = selections[i];
selection = selection.normalize();
@@ -52,7 +52,7 @@ InspectorTest.setLineSelections = function(editor, selections)
selection.from = selection.column;
selection.to = selection.column;
}
- coords.push(new WebInspector.TextRange(selection.line, selection.from, selection.line, selection.to));
+ coords.push(new Common.TextRange(selection.line, selection.from, selection.line, selection.to));
}
editor.setSelections(coords);
}

Powered by Google App Engine
This is Rietveld 408576698