Add more core tests.

This commit is contained in:
Magnar Sveen
2012-07-19 09:47:23 +02:00
parent 4a7fb327f5
commit 50851e7ac2
4 changed files with 114 additions and 37 deletions

View File

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