Make RootView.initialize unaware of deserialization.

When RootView is created without a pathToOpen, no editor is created.
This commit is contained in:
Corey Johnson
2012-05-07 17:51:00 -07:00
parent dd1e617a41
commit e4125448ec
6 changed files with 48 additions and 40 deletions

View File

@@ -5,6 +5,7 @@ describe "CommandPanel", ->
beforeEach ->
rootView = new RootView
rootView.open()
rootView.enableKeymap()
commandPanel = rootView.commandPanel

View File

@@ -7,6 +7,8 @@ describe "StripTrailingWhitespace", ->
beforeEach ->
rootView = new RootView
rootView.open()
StripTrailingWhitespace.activate(rootView)
rootView.focus()
editor = rootView.activeEditor()