Add some more tests for :set-cmd-text.
This commit is contained in:
parent
7701bf602a
commit
128465f12b
@ -11,6 +11,22 @@ Feature: Various utility commands.
|
|||||||
Then the message "test" should be shown.
|
Then the message "test" should be shown.
|
||||||
And the error "error" should be shown.
|
And the error "error" should be shown.
|
||||||
|
|
||||||
|
Scenario: :set-cmd-text with URL replacement
|
||||||
|
When I open data/hello.txt
|
||||||
|
When I run :set-cmd-text :message-info >{url}<
|
||||||
|
And I run :command-accept
|
||||||
|
Then the message ">http://localhost:*/hello.txt<" should be shown.
|
||||||
|
|
||||||
|
Scenario: :set-cmd-text with -s and -a
|
||||||
|
When I run :set-cmd-text -s :message-info "foo
|
||||||
|
And I run :set-cmd-text -a bar"
|
||||||
|
And I run :command-accept
|
||||||
|
Then the message "foo bar" should be shown.
|
||||||
|
|
||||||
|
Scenario: :set-cmd-text with -a but without text
|
||||||
|
When I run :set-cmd-text -a foo
|
||||||
|
Then the error "No current text!" should be shown.
|
||||||
|
|
||||||
Scenario: :set-cmd-text with invalid command
|
Scenario: :set-cmd-text with invalid command
|
||||||
When I run :set-cmd-text foo
|
When I run :set-cmd-text foo
|
||||||
Then the error "Invalid command text 'foo'." should be shown.
|
Then the error "Invalid command text 'foo'." should be shown.
|
||||||
|
Loading…
Reference in New Issue
Block a user