mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-11 04:48:44 +03:00
Delete irrelevant specs
This commit is contained in:
parent
e619d84893
commit
09e0fb2a58
@ -1527,38 +1527,6 @@ describe "Editor", ->
|
||||
|
||||
expect(editor.lineForBufferRow(0)).toBe 'var = () {'
|
||||
|
||||
describe "keyboard movement", ->
|
||||
it "moves all cursors", ->
|
||||
editor.setCursorScreenPosition([3, 13])
|
||||
editor.addCursorAtScreenPosition([3, 38])
|
||||
editor.addCursorAtScreenPosition([4, 1])
|
||||
[cursor1, cursor2, cursor3] = editor.getCursors()
|
||||
|
||||
editor.moveCursorLeft()
|
||||
expect(cursor1.getBufferPosition()).toEqual [3, 12]
|
||||
expect(cursor2.getBufferPosition()).toEqual [3, 37]
|
||||
expect(cursor3.getBufferPosition()).toEqual [4, 0]
|
||||
|
||||
editor.moveCursorLeft()
|
||||
expect(cursor1.getBufferPosition()).toEqual [3, 11]
|
||||
expect(cursor2.getBufferPosition()).toEqual [3, 36]
|
||||
expect(cursor3.getBufferPosition()).toEqual [3, 62]
|
||||
|
||||
editor.moveCursorRight()
|
||||
expect(cursor1.getBufferPosition()).toEqual [3, 12]
|
||||
expect(cursor2.getBufferPosition()).toEqual [3, 37]
|
||||
expect(cursor3.getBufferPosition()).toEqual [4, 0]
|
||||
|
||||
editor.moveCursorDown()
|
||||
expect(cursor1.getBufferPosition()).toEqual [4, 12]
|
||||
expect(cursor2.getBufferPosition()).toEqual [4, 29]
|
||||
expect(cursor3.getBufferPosition()).toEqual [5, 0]
|
||||
|
||||
editor.moveCursorUp()
|
||||
expect(cursor1.getBufferPosition()).toEqual [3, 12]
|
||||
expect(cursor2.getBufferPosition()).toEqual [3, 37]
|
||||
expect(cursor3.getBufferPosition()).toEqual [4, 0]
|
||||
|
||||
describe "selections", ->
|
||||
describe "upon clicking and dragging with the meta-key held down", ->
|
||||
it "adds an additional selection upon clicking and dragging with the meta-key held down", ->
|
||||
|
Loading…
Reference in New Issue
Block a user