mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Don't set the ':' prompt font in command panel because it looks bad afterward
This commit is contained in:
@@ -34,11 +34,8 @@ describe "CommandPanel", ->
|
||||
expect(commandPanel.miniEditor.isFocused).toBeFalsy()
|
||||
|
||||
rootView.trigger 'command-panel:toggle'
|
||||
window.advanceClock() # Setting the font is in a defer statement
|
||||
expect(rootView.find('.command-panel').view()).toBe commandPanel
|
||||
expect(commandPanel.miniEditor.isFocused).toBeTruthy()
|
||||
# this is currently assigned dynamically since our css scheme lacks variables
|
||||
expect(commandPanel.prompt.css('font')).toBe commandPanel.miniEditor.css('font')
|
||||
commandPanel.miniEditor.insertText 's/war/peace/g'
|
||||
|
||||
rootView.trigger 'command-panel:toggle'
|
||||
|
||||
@@ -56,7 +56,6 @@ class CommandPanel extends View
|
||||
@rootView.append(this)
|
||||
@miniEditor.focus()
|
||||
@miniEditor.setText(text)
|
||||
@prompt.css 'font', @miniEditor.css('font')
|
||||
|
||||
detach: ->
|
||||
@rootView.focus()
|
||||
|
||||
Reference in New Issue
Block a user