emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/multiple-cursors ed678df 061/434: Couple more core-tests.


From: ELPA Syncer
Subject: [nongnu] elpa/multiple-cursors ed678df 061/434: Couple more core-tests.
Date: Sat, 7 Aug 2021 09:19:55 -0400 (EDT)

branch: elpa/multiple-cursors
commit ed678dfbcc0814d2ba6619ae5755db1b413a6842
Author: Magnar Sveen <magnars@gmail.com>
Commit: Magnar Sveen <magnars@gmail.com>

    Couple more core-tests.
---
 features/multiple-cursors-core.feature | 43 +++++++++++++++++++++-------------
 features/support/env.el                |  1 +
 2 files changed, 28 insertions(+), 16 deletions(-)

diff --git a/features/multiple-cursors-core.feature 
b/features/multiple-cursors-core.feature
index 8852961..4367403 100644
--- a/features/multiple-cursors-core.feature
+++ b/features/multiple-cursors-core.feature
@@ -4,20 +4,12 @@ Feature: Multiple cursors core
   I want to change multiple parts of the buffer at once
 
   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 press "C-g"
+    Given I have cursors at "text" in "This text contains the word text twice"
     And I press "<return>"
     Then I should have one cursor
 
   Scenario: Exiting multiple-cursors mode with C-g
-    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 press "C-g"
+    Given I have cursors at "text" in "This text contains the word text twice"
     And I press "C-g"
     Then I should have one cursor
 
@@ -37,12 +29,6 @@ Feature: Multiple cursors core
     And I press "C-y M-y"
     Then I should see "This  text the word  text"
 
-  Scenario: Interprogram paste
-    Given I have cursors at "text" in "This text contains the word text twice"
-    When I copy "external" in another program
-    And I press "C-y"
-    Then I should see "This externaltext contains the word externaltext twice"
-
   Scenario: Multiple lambdas
     Given I have bound C-! to a lambda that inserts "a"
     And I have cursors at "text" in "This text contains the word text twice"
@@ -80,3 +66,28 @@ Feature: Multiple cursors core
     And I press "M-f"
     And I press "C-d"
     Then I should see "This  contains the word  twice"
+
+  Scenario: delete-selection-mode (yank)
+    Given I turn on delete-selection-mode
+    And I have cursors at "text" in "This text contains the word text twice"
+    And I press "C-SPC"
+    And I press "M-f"
+    And I press "M-w"
+    And I press "C-SPC"
+    And I press "M-f"
+    And I press "C-y"
+    Then I should see "This texttext the word texttext"
+
+  Scenario: subword-mode
+    Given I turn on subword-mode
+    And I have cursors at "textSnippet" in "This textSnippet contains the word 
textSnippet twice"
+    And I press "M-f"
+    And I type "_"
+    And I press "M-l"
+    Then I should see "This text_snippet contains the word text_snippet twice"
+
+  Scenario: Interprogram paste
+    Given I have cursors at "text" in "This text contains the word text twice"
+    When I copy "external" in another program
+    And I press "C-y"
+    Then I should see "This externaltext contains the word externaltext twice"
diff --git a/features/support/env.el b/features/support/env.el
index a93cac3..facfc70 100644
--- a/features/support/env.el
+++ b/features/support/env.el
@@ -23,6 +23,7 @@
  (transient-mark-mode 1)
  (cua-mode 0)
  (delete-selection-mode 0)
+ (subword-mode 0)
  (setq set-mark-default-inactive nil)
  (deactivate-mark))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]