Add RootView.getActiveView and .getActivePaneItem

They will replace getActiveEditor/getActiveEditSession
This commit is contained in:
Kevin Sawicki & Nathan Sobo
2013-02-21 16:25:51 -07:00
committed by probablycorey
parent 58228f7ff7
commit 80e736d4ee
3 changed files with 12 additions and 5 deletions

View File

@@ -7,10 +7,8 @@ describe "GrammarView", ->
beforeEach ->
window.rootView = new RootView
project.removeGrammarOverrideForPath('sample.js')
rootView.open('sample.js')
editor = rootView.getActiveEditor()
rootView.attachToDom()
editor = rootView.getActiveView()
textGrammar = _.find syntax.grammars, (grammar) -> grammar.name is 'Plain Text'
expect(textGrammar).toBeTruthy()
jsGrammar = _.find syntax.grammars, (grammar) -> grammar.name is 'JavaScript'