mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 15:37:46 +03:00
spec - getCursorAtScreenPosition checks cursors instead of cursor.marker
This commit is contained in:
parent
9f0f4c0530
commit
8521b81051
@ -920,7 +920,7 @@ describe "TextEditor", ->
|
||||
it "returns the cursor at the given screenPosition", ->
|
||||
cursor1 = editor.addCursorAtScreenPosition([0, 2])
|
||||
cursor2 = editor.getCursorAtScreenPosition(cursor1.getScreenPosition())
|
||||
expect(cursor2.marker).toBe cursor1.marker
|
||||
expect(cursor2).toBe cursor1
|
||||
|
||||
describe "::getCursorScreenPositions()", ->
|
||||
it "returns the cursor positions in the order they were added", ->
|
||||
|
Loading…
Reference in New Issue
Block a user