branch: elpa/multiple-cursors
commit 2d639b0f454a84769d1cc333abffeaf56d23e56f
Author: Ivan Andrus <[email protected]>
Commit: Ivan Andrus <[email protected]>
Added tests for new mc/edit-lines
---
features/edit-lines.feature | 83 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 83 insertions(+)
diff --git a/features/edit-lines.feature b/features/edit-lines.feature
index 814f784..080eaee 100644
--- a/features/edit-lines.feature
+++ b/features/edit-lines.feature
@@ -55,3 +55,86 @@ Feature: Switching from a multiline region to multiple
cursors
And I go to the front of the word "there"
And I press "C-S-c C-S-c"
Then I should have 2 cursors
+
+ Scenario: Edit default short lines
+ When I insert:
+ """
+ hello
+
+ there
+ """
+ And I go to the end of the word "hello"
+ And I set the mark
+ And I go to the end of the word "there"
+ And I press "C-S-c C-S-c"
+ And I press "you"
+ Then I should see:
+ """
+ helloyou
+ you
+ thereyou
+ """
+
+ Scenario: Pad short lines
+ When I insert:
+ """
+ hello
+
+ there
+ """
+ And I go to the end of the word "hello"
+ And I set the mark
+ And I go to the end of the word "there"
+ And I press "M-1 C-S-c C-S-c"
+ Then I should have 3 cursors
+
+ Scenario: Edit padding short lines
+ When I insert:
+ """
+ hello
+
+ there
+ """
+ And I go to the end of the word "hello"
+ And I set the mark
+ And I go to the end of the word "there"
+ And I press "M-1 C-S-c C-S-c"
+ And I press "you"
+ Then I should see:
+ """
+ helloyou
+ you
+ thereyou
+ """
+
+ Scenario: Skip short lines
+ When I insert:
+ """
+ hello
+
+ there
+ """
+ And I go to the end of the word "hello"
+ And I set the mark
+ And I go to the end of the word "there"
+ And I press "M-- M-1 C-S-c C-S-c"
+ Then I should have 2 cursors
+
+ Scenario: Edit skipping short lines
+ When I insert:
+ """
+ hello
+
+ there
+ """
+ And I go to the end of the word "hello"
+ And I set the mark
+ And I go to the end of the word "there"
+ And I press "M-- M-1 C-S-c C-S-c"
+ And I press "you"
+ Then I should see:
+ """
+ helloyou
+
+ thereyou
+ """