Trigger move-up to reset top scroll to 0

This commit is contained in:
Kevin Sawicki
2013-02-04 15:26:46 -08:00
parent db9c67e1e2
commit 278b8c3df1

View File

@@ -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", ->