mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Replace anchor w/ marker in selection destruction spec
This commit is contained in:
@@ -68,10 +68,7 @@ describe "Selection", ->
|
||||
expect(changeScreenRangeHandler).toHaveBeenCalled()
|
||||
|
||||
describe "when the selection is destroyed", ->
|
||||
it "destroys its cursor and its anchor's cursor", ->
|
||||
it "destroys its marker", ->
|
||||
selection.setBufferRange([[2, 0], [2, 10]])
|
||||
|
||||
selection.destroy()
|
||||
|
||||
expect(editSession.getAnchors().indexOf(selection.anchor)).toBe -1
|
||||
expect(editSession.getAnchors().indexOf(selection.cursor.anchor)).toBe -1
|
||||
expect(editSession.getMarkerBufferRange(selection.marker)).toBeUndefined()
|
||||
|
||||
Reference in New Issue
Block a user