📝 Better and consistent naming across specs and docs

This commit is contained in:
Antonio Scandurra
2015-03-12 12:32:18 +01:00
parent faa2944232
commit 3b5a0b292d
2 changed files with 4 additions and 4 deletions

View File

@@ -1253,17 +1253,17 @@ describe "DisplayBuffer", ->
displayBuffer.setLineHeightInPixels(10)
displayBuffer.setHeight(100)
it "returns a closed interval of visible rows", ->
it "returns the first and the last visible rows", ->
displayBuffer.setScrollTop(0)
expect(displayBuffer.getVisibleRowRange()).toEqual [0, 9]
it "includes partially visible rows in the interval", ->
it "includes partially visible rows in the range", ->
displayBuffer.setScrollTop(5)
expect(displayBuffer.getVisibleRowRange()).toEqual [0, 10]
it "returns an empty interval when lineHeight is 0", ->
it "returns an empty range when lineHeight is 0", ->
displayBuffer.setLineHeightInPixels(0)
expect(displayBuffer.getVisibleRowRange()).toEqual [0, 0]

View File

@@ -348,7 +348,7 @@ class DisplayBuffer extends Model
getScrollWidth: ->
@scrollWidth
# Returns an {Array} of two numbers representing a closed interval of visible rows.
# Returns an {Array} of two numbers representing the first and the last visible rows.
getVisibleRowRange: ->
return [0, 0] unless @getLineHeightInPixels() > 0