RootView.initialize no longer assigns window.rootView or calls open

This commit is contained in:
Corey Johnson & Nathan Sobo
2013-02-19 17:18:25 -07:00
parent 0b5ea8578f
commit 9e8831f710
30 changed files with 129 additions and 215 deletions

View File

@@ -6,8 +6,8 @@ describe "CommandPanel", ->
[editor, buffer, commandPanel, CommandPanel] = []
beforeEach ->
new RootView
rootView.open(require.resolve 'fixtures/sample.js')
window.rootView = new RootView
rootView.open('sample.js')
rootView.enableKeymap()
editor = rootView.getActiveEditor()
buffer = editor.activeEditSession.buffer
@@ -33,7 +33,8 @@ describe "CommandPanel", ->
rootViewState = rootView.serialize()
rootView.deactivate()
RootView.deserialize(rootViewState).attachToDom()
window.rootView = RootView.deserialize(rootViewState)
rootView.attachToDom()
window.loadPackage('command-panel')
expect(rootView.find('.command-panel')).not.toExist()