Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Don't treat lone CR as line ending in display layer spec
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbrunsfeld committed May 15, 2017
1 parent 4d7e66f commit 2edddba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/display-layer-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ describe('DisplayLayer', () => {

it('renders end of line invisibles, appropriately decorated', () => {
const buffer = new TextBuffer({
text: 'a\nb\n\nd e f\r\ngh\rij\n\r\n'
text: 'a\nb\n\nd e f\r\ngh\r\nij\n\r\n'
})

const displayLayer = buffer.addDisplayLayer({
Expand All @@ -1366,7 +1366,7 @@ describe('DisplayLayer', () => {
}
})

expect(displayLayer.getText()).toBe('a¬\nb¬\n¬\nd e f¤¬\ngh¤\nij¬\n¤¬\n')
expect(displayLayer.getText()).toBe('a¬\nb¬\n¬\nd e f¤¬\ngh¤¬\nij¬\n¤¬\n')

expectTokenBoundaries(displayLayer, [
{
Expand Down Expand Up @@ -1430,7 +1430,7 @@ describe('DisplayLayer', () => {
open: []
},
{
text: '¤',
text: ¬ ',
close: [],
open: ['invisible-character eol']
},
Expand Down

0 comments on commit 2edddba

Please sign in to comment.