mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Update specs for resize handler changes
This commit is contained in:
@@ -1670,14 +1670,10 @@ describe "Editor", ->
|
||||
editor.edit(otherEditSession)
|
||||
expect(editor.renderedLines.find('.line').length).toBe(1)
|
||||
|
||||
it "unwraps lines and cancels window resize listener when softwrap is disabled", ->
|
||||
it "unwraps lines when softwrap is disabled", ->
|
||||
editor.toggleSoftWrap()
|
||||
expect(editor.renderedLines.find('.line:eq(3)').text()).toBe ' var pivot = items.shift(), current, left = [], right = [];'
|
||||
|
||||
spyOn(editor, 'setSoftWrapColumn')
|
||||
$(window).trigger 'resize'
|
||||
expect(editor.setSoftWrapColumn).not.toHaveBeenCalled()
|
||||
|
||||
it "allows the cursor to move down to the last line", ->
|
||||
_.times editor.getLastScreenRow(), -> editor.moveCursorDown()
|
||||
expect(editor.getCursorScreenPosition()).toEqual [editor.getLastScreenRow(), 0]
|
||||
|
||||
Reference in New Issue
Block a user