Finally got the tests running. :-)

This commit is contained in:
Magnar Sveen
2012-07-18 15:32:56 +02:00
parent de0519e0f0
commit eda9952fc0
5 changed files with 50 additions and 15 deletions

View File

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