Add tests for {url:pretty} in :set-cmd-text
This commit is contained in:
parent
bb45392c1b
commit
9527712daa
@ -15,10 +15,22 @@ Feature: Various utility commands.
|
||||
|
||||
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 :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 URL replacement with encoded spaces
|
||||
When I open data/title with spaces.html
|
||||
And I run :set-cmd-text :message-info {url}
|
||||
And I run :command-accept
|
||||
Then the message "http://localhost:*/title%20with%20spaces.html" should be shown
|
||||
|
||||
Scenario: :set-cmd-text with URL replacement with decoded spaces
|
||||
When I open data/title with spaces.html
|
||||
And I run :set-cmd-text :message-info "> {url:pretty} <"
|
||||
And I run :command-accept
|
||||
Then the message "> http://localhost:*/title with spaces.html <" 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"
|
||||
|
Loading…
Reference in New Issue
Block a user