From dcd9c52b4a86812123dcae0dfe0e70141c1fb2b3 Mon Sep 17 00:00:00 2001 From: Magnar Sveen Date: Wed, 6 Jun 2012 12:59:33 +0200 Subject: [PATCH] Add new feature test. --- features/mark-multiple-integration.feature | 11 +++++++++++ features/support/env.el | 1 + 2 files changed, 12 insertions(+) diff --git a/features/mark-multiple-integration.feature b/features/mark-multiple-integration.feature index cd3eca8..fd2b32c 100644 --- a/features/mark-multiple-integration.feature +++ b/features/mark-multiple-integration.feature @@ -11,3 +11,14 @@ Feature: Mark multiple integration And I press "C->" And I type "sentence" Then I should see "This sentence contains the word sentence twice" + + Scenario: Mark two words and go to multiple cursors + 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" + And I type "'" + And I press "C-f" 4 times + And I type "'" + Then I should see "This 'text' contains the word 'text' twice" diff --git a/features/support/env.el b/features/support/env.el index 6c5fe8e..686073d 100644 --- a/features/support/env.el +++ b/features/support/env.el @@ -14,6 +14,7 @@ (require 'ert) (Before + (mm/clear-all) (global-set-key (kbd "C->") 'mark-next-like-this) (switch-to-buffer (get-buffer-create "*multiple-cursors*"))