Remove unneded clearAutoscroll call

This commit is contained in:
Kevin Sawicki
2013-11-06 09:11:09 -08:00
parent 6b63f5db9e
commit b4f8387053

View File

@@ -959,8 +959,7 @@ describe "Editor", ->
expect(editor.scrollToPixelPosition.callCount).toBe 1
it "autoscrolls on undo/redo", ->
editor.getCursor().clearAutoscroll()
spyOn(editor, 'scrollToPixelPosition').andCallThrough()
spyOn(editor, 'scrollToPixelPosition')
editor.insertText('\n\n')
expect(editor.scrollToPixelPosition.callCount).toBe 1
editor.undo()