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

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

Issue 206063003: DevTools: Extract SourcesEditor from SourcesPanel. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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: LayoutTests/inspector/jump-to-previous-editing-location.html
diff --git a/LayoutTests/inspector/jump-to-previous-editing-location.html b/LayoutTests/inspector/jump-to-previous-editing-location.html
index d11a6fa03c17c811bc8789cbf1d905dba7b37bcc..983dca0ed1748ce3f79ce2cd6531e6909c3970e0 100644
--- a/LayoutTests/inspector/jump-to-previous-editing-location.html
+++ b/LayoutTests/inspector/jump-to-previous-editing-location.html
@@ -10,15 +10,18 @@ function test()
{
WebInspector.inspectorView.showPanel("sources");
var panel = WebInspector.panels.sources;
+ var sourcesEditor = panel._sourcesEditor;
+ var historyManager = sourcesEditor._historyManager;
+ var editorContainer = sourcesEditor._editorContainer;
function rollback()
{
- panel._historyManager.rollback();
+ historyManager.rollback();
}
function rollover()
{
- panel._historyManager.rollover();
+ historyManager.rollover();
}
function dumpSelection(editor, label)
@@ -158,8 +161,8 @@ function test()
function testCloseCrossFile(next)
{
- var selectedTab = panel._editorContainer._tabbedPane.selectedTabId;
- panel._editorContainer._tabbedPane.closeTab(selectedTab);
+ var selectedTab = editorContainer._tabbedPane.selectedTabId;
+ editorContainer._tabbedPane.closeTab(selectedTab);
dumpSelection(panel.visibleView.textEditor, "Close active tab");
for (var i = 0; i < 1; ++i) {
rollback();

Powered by Google App Engine
This is Rietveld 408576698