This commit is contained in:
Antonio Scandurra
2015-05-06 08:55:53 +02:00
parent 216b757ac0
commit daa4b33e64
2 changed files with 3 additions and 3 deletions

View File

@@ -657,7 +657,7 @@ describe "TextEditorPresenter", ->
expectStateUpdate presenter, -> editor.setPlaceholderText("new-placeholder-text")
expect(presenter.getState().content.placeholderText).toBe "new-placeholder-text"
fdescribe ".tiles", ->
describe ".tiles", ->
it "contains states for tiles that are visible on screen, plus and minus the overdraw margin", ->
presenter = buildPresenter(explicitHeight: 3, scrollTop: 1, lineHeight: 1, tileCount: 3, tileOverdrawMargin: 1)
@@ -762,7 +762,7 @@ describe "TextEditorPresenter", ->
expect(lineStateForScreenRow(presenter, 5)).toBeDefined()
expect(lineStateForScreenRow(presenter, 6)).toBeUndefined()
fffit "updates when the editor's content changes", ->
it "updates when the editor's content changes", ->
lineStateForScreenRow = (presenter, tile, row) ->
lineId = presenter.model.tokenizedLineForScreenRow(row).id
presenter.getState().content.tiles[tile].lines[lineId]

View File

@@ -21,7 +21,7 @@ class TextEditorPresenter
@measuredHorizontalScrollbarHeight = horizontalScrollbarHeight
@measuredVerticalScrollbarWidth = verticalScrollbarWidth
@gutterWidth ?= 0
@tileOverdrawMargin ?= 1
@tileOverdrawMargin ?= 0
@tileCount ?= 3
@linesPresentersByTileIndex = {}