mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Trigger move-up to reset top scroll to 0
This commit is contained in:
@@ -408,7 +408,7 @@ describe "CommandPanel", ->
|
||||
|
||||
expect(previewList.scrollBottom()).toBeCloseTo previewList.prop('scrollHeight'), -1
|
||||
|
||||
previewList.trigger 'core:move-down'
|
||||
_.times previewList.getOperations().length, -> previewList.trigger 'core:move-up'
|
||||
expect(previewList.scrollTop()).toBe 0
|
||||
|
||||
it "doesn't bubble up the event and the command panel text doesn't change", ->
|
||||
|
||||
Reference in New Issue
Block a user