From c8c61993697ee34ae3831ff48422bca16036e228 Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Wed, 4 Oct 2017 02:30:23 +1100 Subject: [PATCH] Add tests for :set-cmd-text --run-on-count --- tests/end2end/features/misc.feature | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/end2end/features/misc.feature b/tests/end2end/features/misc.feature index 9d8204b63..8af20806e 100644 --- a/tests/end2end/features/misc.feature +++ b/tests/end2end/features/misc.feature @@ -47,6 +47,14 @@ Feature: Various utility commands. When I run :set-cmd-text foo Then the error "Invalid command text 'foo'." should be shown + Scenario: :set-cmd-text with run on count flag and no count + When I run :set-cmd-text --run-on-count :message-info "Hello World" + Then "message:info:86 Hello World" should not be logged + + Scenario: :set-cmd-text with run on count flag and a count + When I run :set-cmd-text --run-on-count :message-info "Hello World" with count 1 + Then the message "Hello World" should be shown + ## :jseval Scenario: :jseval