Start to add specs (in wrong file though)

This commit is contained in:
Benjamin Gray
2018-11-21 17:09:07 +11:00
parent 196b576ca8
commit 3a8f95e670

View File

@@ -7314,6 +7314,21 @@ describe('TextEditor', () => {
editor.toggleLineCommentsForBufferRows(0, 0)
expect(editor.lineTextForBufferRow(0)).toBe('test')
})
it('does not select the new delimiters when the option is set'), () => {
let delimLength = '<!--'.length
let selection = editor.addCursorAtBufferPosition([0, delimLength])
selection.toggleLineComments()
expect(selection.isEmpty() && selection.getBufferRange().start.column === 0).toBe(true)
selection.toggleLineComments()
expect(selection.isEmpty() && selection.getBufferRange().start.column === delimLength).toBe(true)
selection.setBufferRange([[0, delimLength], [0, '<!-- test'.length]])
selection.toggleLineComments()
let range = selection.getBufferRange;
expect(range.start.column === 0 && range.end.column === 'test'.length).toBe(true)
}
})
describe('less', () => {