Create a failing fold spec

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-05-17 17:04:11 -07:00
parent 608ccc38e8
commit 06d1f8a718
2 changed files with 52 additions and 41 deletions

View File

@@ -2464,6 +2464,18 @@ describe "Editor", ->
editor.createFold([[1, 0], [1, 30]])
expect(editor.visibleLines.find('.line:eq(1)').html()).toMatch / $/
describe "???", ->
fit "should render lines correctly", ->
setEditorHeightInLines(editor, 20)
setEditorWidthInChars(editor, 50)
editor.setBuffer(new Buffer(require.resolve('fixtures/two-hundred.txt')))
editor.toggleSoftWrap()
editor.createFold([[4, 90], [6, 1]])
editor.createFold([[6, 1], [8, 1]])
expect(editor.renderer.lineForRow(6).text).toBe "9"
expect(editor.renderer.lineForRow(7).text).toMatch /^10\.+/
describe "editor-path-change event", ->
it "emits event when buffer's path is changed", ->
editor = new Editor