spec - getCursorAtScreenPosition checks cursors instead of cursor.marker

This commit is contained in:
Luke Pommersheim 2015-06-12 19:21:37 +02:00
parent 9f0f4c0530
commit 8521b81051

View File

@ -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", ->