[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))
- [nongnu] elpa/multiple-cursors d69ae15 073/434: Use setq for default lists to be able to re-evaluate., (continued)
- [nongnu] elpa/multiple-cursors d69ae15 073/434: Use setq for default lists to be able to re-evaluate., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 487e8be 006/434: Added docstrings to each function., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors a4d406e 011/434: Conclude multiple-cursors-mode with <return>, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors dcd9c52 022/434: Add new feature test., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 03dfc70 024/434: A working multiple-regions implementation, with some issues., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 1392027 031/434: Separate secondary stuff from core., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 759391e 045/434: Don't message about skipping known run-once commands, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 71f444a 050/434: Remove unused commands from whitelist., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 822bf18 056/434: Update test., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 700db99 062/434: Add kill-ring-save to whitelist., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors ed678df 061/434: Couple more core-tests.,
ELPA Syncer <=
- [nongnu] elpa/multiple-cursors a19c8c3 077/434: Add cycle-backwards to once-list, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 51b282e 078/434: Switch to multiple-cursors-mode from rectangular-region-mode when doing expand-region, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors c331366 099/434: Add multiple-cursors-pkg, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 4c91260 004/434: Updated readme., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 399db27 012/434: More white-listed commands:, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors fca0685 055/434: Use symbol properties on commands instead of maintaining a list of unsupported commands., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 50851e7 060/434: Add more core tests., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors de0519e 057/434: Add support for running lambdas for each cursor., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 8ec468f 080/434: Don't save .mc-list.el when running tests., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 4003aa1 102/434: Replace outdated function name with new one, ELPA Syncer, 2021/08/07