mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-22 00:19:24 +03:00
Backfill specs for not scrolling left when activating autocomplete
This commit is contained in:
parent
66efc80373
commit
f33af85154
@ -140,6 +140,16 @@ describe "Autocomplete", ->
|
||||
expect(editor.getSelection().isEmpty()).toBeTruthy()
|
||||
expect(editor.find('.autocomplete')).not.toExist()
|
||||
|
||||
describe "when the editor is scrolled to the right", ->
|
||||
it "does not scroll it to the left", ->
|
||||
editor.width(300)
|
||||
editor.height(300)
|
||||
editor.attachToDom()
|
||||
editor.setCursorBufferPosition([6, Infinity])
|
||||
previousScrollLeft = editor.scrollView.scrollLeft()
|
||||
autocomplete.attach()
|
||||
expect(editor.scrollView.scrollLeft()).toBe previousScrollLeft
|
||||
|
||||
describe 'core:confirm event', ->
|
||||
describe "where there are matches", ->
|
||||
describe "where there is no selection", ->
|
||||
|
Loading…
Reference in New Issue
Block a user