💚 Fix remaining failures in TextEditorPresenter

This commit is contained in:
Antonio Scandurra
2015-09-23 16:14:15 +02:00
parent 870a5303e1
commit 0f7d88c77b

View File

@@ -1853,9 +1853,10 @@ describe "TextEditorPresenter", ->
pixelPosition: {top: 6 * 10 - scrollTop, left: gutterWidth}
}
expectStateUpdate presenter, ->
editor.insertNewline()
presenter.setScrollTop(scrollTop) # I'm fighting the editor
editor.insertNewline()
presenter.getState() # forces scroll top to be changed
presenter.setScrollTop(scrollTop) # I'm fighting the editor
expectValues stateForOverlay(presenter, decoration), {
item: item
pixelPosition: {top: 6 * 10 - scrollTop - itemHeight, left: gutterWidth}