mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-11 04:48:44 +03:00
Use old presenter interface in presenter spec
This commit is contained in:
parent
42d509ca4e
commit
fb0cb452ea
@ -806,7 +806,7 @@ describe "TextEditorPresenter", ->
|
||||
it "updates when the model's scroll position is changed directly", ->
|
||||
presenter = buildPresenter(scrollTop: 0, explicitHeight: 20, horizontalScrollbarHeight: 10, lineHeight: 10)
|
||||
expectStateUpdate presenter, -> editor.setFirstVisibleScreenRow(1)
|
||||
expect(getState(presenter).content.scrollTop).toBe 10
|
||||
expect(presenter.getState().content.scrollTop).toBe 10
|
||||
|
||||
it "reassigns the scrollTop if it exceeds the max possible value after lines are removed", ->
|
||||
presenter = buildPresenter(scrollTop: 80, lineHeight: 10, explicitHeight: 50, horizontalScrollbarHeight: 0)
|
||||
|
Loading…
Reference in New Issue
Block a user