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

Unified Diff: third_party/WebKit/LayoutTests/inspector/jump-to-previous-editing-location.html

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/jump-to-previous-editing-location.html
diff --git a/third_party/WebKit/LayoutTests/inspector/jump-to-previous-editing-location.html b/third_party/WebKit/LayoutTests/inspector/jump-to-previous-editing-location.html
index ca7057e177a0ea6a7910c2a9879568768bd104e9..8e363bc5d3bef13e4eabb7a5cf947565d76e73b8 100644
--- a/third_party/WebKit/LayoutTests/inspector/jump-to-previous-editing-location.html
+++ b/third_party/WebKit/LayoutTests/inspector/jump-to-previous-editing-location.html
@@ -9,7 +9,7 @@
<script>
function test()
{
- var panel = WebInspector.panels.sources;
+ var panel = UI.panels.sources;
var sourcesView = panel._sourcesView;
var historyManager = sourcesView._historyManager;
var editorContainer = sourcesView._editorContainer;
@@ -53,7 +53,7 @@ function test()
var lineNumber = lines[i];
var columnNumber = columns[i];
var originSelection = editor.selection();
- editor.setSelection(WebInspector.TextRange.createFromLocation(lineNumber, columnNumber));
+ editor.setSelection(Common.TextRange.createFromLocation(lineNumber, columnNumber));
editor._reportJump(originSelection, editor.selection());
dumpSelection("Mouse click (" + lineNumber + ", " + columnNumber + ")");
}
@@ -114,7 +114,7 @@ function test()
function testDeletePreviousJumpLocations(next)
{
var editor = panel.visibleView.textEditor;
- editor.editRange(new WebInspector.TextRange(9, 0, 15, 0), "");
+ editor.editRange(new Common.TextRange(9, 0, 15, 0), "");
dumpSelection("Removed lines from 9 to 15");
rollback();
dumpSelection("Rolled back");
@@ -132,7 +132,7 @@ function test()
for (var i = 0; i < jumpsToDo; ++i)
rollback();
dumpSelection("Rolled back 4 times");
- editor.editRange(new WebInspector.TextRange(9, 0, 11, 0), "");
+ editor.editRange(new Common.TextRange(9, 0, 11, 0), "");
dumpSelection("Removed lines from 9 to 11");
rollover();
dumpSelection("Rolled over");
@@ -179,7 +179,7 @@ function test()
{
var lines = [];
var columns = [];
- const jumpsAmount = WebInspector.EditingLocationHistoryManager.HistoryDepth;
+ const jumpsAmount = Sources.EditingLocationHistoryManager.HistoryDepth;
for(var i = 0; i < jumpsAmount; ++i) {
lines.push(i + 10);
columns.push(7);
@@ -220,10 +220,10 @@ function test()
InspectorTest.waitForScriptSource("workspace-test.js", onScriptSource);
function onScriptSource(uiSourceCode)
{
- var linkifier = new WebInspector.Linkifier();
+ var linkifier = new Components.Linkifier();
var anchorURI = uiSourceCode.url();
- var anchor = linkifier.linkifyScriptLocation(WebInspector.targetManager.mainTarget(), null, anchorURI, 10, 1);
- WebInspector.Revealer.revealPromise(anchor[WebInspector.Linkifier._uiLocationSymbol]).then(function() {
+ var anchor = linkifier.linkifyScriptLocation(SDK.targetManager.mainTarget(), null, anchorURI, 10, 1);
+ Common.Revealer.revealPromise(anchor[Components.Linkifier._uiLocationSymbol]).then(function() {
InspectorTest.addResult("Selection: " + panel.visibleView.textEditor.selection().toString());
dumpSelection("Showed anchor in " + anchorURI.split("/").pop() + " with line 333 column 3");
rollback();

Powered by Google App Engine
This is Rietveld 408576698