mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Base the screen range of the selection view on the selection model
This commit is contained in:
@@ -17,8 +17,8 @@ describe "Selection", ->
|
||||
it "places the anchor at the start of the range and the cursor at the end", ->
|
||||
range = new Range({row: 2, column: 7}, {row: 3, column: 18})
|
||||
selection.setBufferRange(range)
|
||||
expect(selection.anchor.getScreenPosition()).toEqual range.start
|
||||
expect(selection.cursor.getScreenPosition()).toEqual range.end
|
||||
expect(selection.selection.anchor.getScreenPosition()).toEqual range.start
|
||||
expect(selection.selection.cursor.getScreenPosition()).toEqual range.end
|
||||
|
||||
describe ".deleteSelectedText()", ->
|
||||
describe "when nothing is selected", ->
|
||||
|
||||
Reference in New Issue
Block a user