mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2026-02-05 06:32:24 +00:00
Finally got the tests running. :-)
This commit is contained in:
@@ -5,9 +5,30 @@ Feature: Multiple cursors core
|
||||
|
||||
Scenario: Two cursors
|
||||
Given there is no region selected
|
||||
When I insert "This text contains the word text thrice (text)"
|
||||
When I insert "This text contains the word text twice"
|
||||
And I select "text"
|
||||
And I press "C->"
|
||||
And I switch to multiple-cursors mode
|
||||
Then I should have 2 cursors
|
||||
|
||||
Scenario: Three cursors
|
||||
Given there is no region selected
|
||||
When I insert:
|
||||
"""
|
||||
This text contains the word text thrice, and
|
||||
one of the instances of the word text is on the second line.
|
||||
"""
|
||||
And I select "text"
|
||||
And I press "C->"
|
||||
And I press "C->"
|
||||
And I press "C-g"
|
||||
And I switch to multiple-cursors mode
|
||||
Then I should have 3 cursors
|
||||
|
||||
Scenario: Exiting multiple-cursors mode with return
|
||||
Given there is no region selected
|
||||
When I insert "This text contains the word text twice"
|
||||
And I select "text"
|
||||
And I press "C->"
|
||||
And I switch to multiple-cursors mode
|
||||
And I press "<return>"
|
||||
Then I should have one cursor
|
||||
|
||||
Reference in New Issue
Block a user