mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
RootView.initialize no longer assigns window.rootView or calls open
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user