mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2026-02-04 14:22:24 +00:00
Add more core tests.
This commit is contained in:
@@ -3,23 +3,23 @@ Feature: Mark multiple integration
|
||||
As an Emacs user with mark-multiple
|
||||
I want to mark multiple regions and then go to multiple-cursors-mode
|
||||
|
||||
Scenario: Mark two words and change them
|
||||
Scenario: Two cursors
|
||||
Given there is no region selected
|
||||
And delete-selection-mode is active
|
||||
When I insert "This text contains the word text twice"
|
||||
And I select "text"
|
||||
And I press "C->"
|
||||
And I type "sentence"
|
||||
Then I should see "This sentence contains the word sentence twice"
|
||||
And I press "C-g"
|
||||
Then I should have 2 cursors
|
||||
|
||||
Scenario: Mark two words and go to multiple cursors
|
||||
Scenario: Three cursors
|
||||
Given there is no region selected
|
||||
When I insert "This text contains the word text twice"
|
||||
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 switch to multiple-cursors mode
|
||||
And I type "("
|
||||
And I press "M-f"
|
||||
And I press "M-f"
|
||||
And I type ")"
|
||||
Then I should see "This (text contains) the word (text twice)"
|
||||
And I press "C->"
|
||||
And I press "C-g"
|
||||
Then I should have 3 cursors
|
||||
|
||||
Reference in New Issue
Block a user