mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
RootView talks about packages and packageModules, not extensions
Now you call `rootView.activatePackage`, etc
This commit is contained in:
@@ -36,7 +36,7 @@ describe "CommandPanel", ->
|
||||
rootView.deactivate()
|
||||
rootView2.attachToDom()
|
||||
|
||||
commandPanel = rootView2.activateExtension(CommandPanel)
|
||||
commandPanel = rootView2.activatePackage(CommandPanel)
|
||||
expect(rootView2.find('.command-panel')).toExist()
|
||||
expect(commandPanel.miniEditor.getText()).toBe 'abc'
|
||||
expect(commandPanel.miniEditor.isFocused).toBeTruthy()
|
||||
@@ -49,7 +49,7 @@ describe "CommandPanel", ->
|
||||
rootView3 = RootView.deserialize(rootView2.serialize())
|
||||
rootView2.deactivate()
|
||||
rootView3.attachToDom()
|
||||
commandPanel = rootView3.activateExtension(CommandPanel)
|
||||
commandPanel = rootView3.activatePackage(CommandPanel)
|
||||
|
||||
expect(commandPanel.miniEditor.isFocused).toBeFalsy()
|
||||
rootView3.deactivate()
|
||||
@@ -71,7 +71,7 @@ describe "CommandPanel", ->
|
||||
rootView.deactivate()
|
||||
rootView2.attachToDom()
|
||||
|
||||
commandPanel = rootView2.activateExtension(CommandPanel)
|
||||
commandPanel = rootView2.activatePackage(CommandPanel)
|
||||
expect(commandPanel.history.length).toBe(2)
|
||||
expect(commandPanel.history[0]).toBe('/test2')
|
||||
expect(commandPanel.history[1]).toBe('/test3')
|
||||
|
||||
Reference in New Issue
Block a user