Test multiple tab lengths

This commit is contained in:
Kevin Sawicki
2014-06-18 16:25:31 -07:00
parent 8560526158
commit 0504244066

View File

@@ -358,6 +358,13 @@ describe "TokenizedBuffer", ->
expect(tokenizedBuffer.lineForScreenRow(1).text).toBe "12 3"
expect(tokenizedBuffer.lineForScreenRow(2).text).toBe "123 4"
tokenizedBuffer.setTabLength(2)
fullyTokenize(tokenizedBuffer)
expect(tokenizedBuffer.lineForScreenRow(0).text).toBe "1 2"
expect(tokenizedBuffer.lineForScreenRow(1).text).toBe "12 3"
expect(tokenizedBuffer.lineForScreenRow(2).text).toBe "123 4"
describe "when the buffer contains surrogate pairs", ->
beforeEach ->
waitsForPromise ->