mirror of
https://github.com/atom/atom.git
synced 2026-02-08 21:55:05 -05:00
Autocomplete is cancelled if the mini editor loses focus before a selection is confirmed
This commit is contained in:
@@ -307,10 +307,10 @@ describe "Autocomplete", ->
|
||||
expect(autocomplete.parent()).not.toExist()
|
||||
expect(editor.lineForBufferRow(10)).toEqual 'pivot '
|
||||
|
||||
describe 'when the editor is focused', ->
|
||||
describe 'when the mini-editor loses focus before the selection is confirmed', ->
|
||||
it "cancels the autocomplete", ->
|
||||
editor.attachToDom()
|
||||
autocomplete.attach()
|
||||
|
||||
spyOn(autocomplete, "cancel")
|
||||
|
||||
editor.focus()
|
||||
|
||||
Reference in New Issue
Block a user