2017-03-31 17:16:31 +02:00
|
|
|
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
|
|
|
|
|
2016-03-25 18:19:35 +01:00
|
|
|
Feature: :spawn
|
|
|
|
|
|
|
|
Scenario: Running :spawn
|
2016-09-08 23:14:10 +02:00
|
|
|
When I run :spawn -v (echo-exe) "Hello"
|
2016-03-25 18:19:35 +01:00
|
|
|
Then the message "Command exited successfully." should be shown
|
|
|
|
|
|
|
|
Scenario: Running :spawn with command that does not exist
|
|
|
|
When I run :spawn command_does_not_exist127623
|
|
|
|
Then the error "Error while spawning command: The process failed to start." should be shown
|
|
|
|
|
2016-05-29 18:24:34 +02:00
|
|
|
Scenario: Starting a userscript which doesn't exist
|
|
|
|
When I run :spawn -u this_does_not_exist
|
2016-09-30 09:39:14 +02:00
|
|
|
Then the error "Userscript 'this_does_not_exist' not found in userscript directories *" should be shown
|
2016-09-29 13:29:39 +02:00
|
|
|
|
|
|
|
Scenario: Starting a userscript with absoloute path which doesn't exist
|
|
|
|
When I run :spawn -u /this_does_not_exist
|
|
|
|
Then the error "Userscript '/this_does_not_exist' not found" should be shown
|
2016-05-29 18:24:34 +02:00
|
|
|
|
2017-02-05 00:13:11 +01:00
|
|
|
# https://github.com/qutebrowser/qutebrowser/issues/1614
|
2016-07-03 17:32:19 +02:00
|
|
|
@posix
|
2016-03-25 18:19:35 +01:00
|
|
|
Scenario: Running :spawn with invalid quoting
|
2016-03-28 23:53:26 +02:00
|
|
|
When I run :spawn ""'""
|
2016-03-25 18:19:35 +01:00
|
|
|
Then the error "Error while splitting command: No closing quotation" should be shown
|
|
|
|
|
|
|
|
Scenario: Running :spawn with url variable
|
2016-09-08 23:14:10 +02:00
|
|
|
When I run :spawn (echo-exe) {url}
|
|
|
|
Then "Executing * with args ['about:blank'], userscript=False" should be logged
|
2016-03-25 18:21:38 +01:00
|
|
|
|
2016-04-20 16:58:14 +02:00
|
|
|
Scenario: Running :spawn with url variable in fully encoded format
|
|
|
|
When I open data/title with spaces.html
|
2016-09-08 23:14:10 +02:00
|
|
|
And I run :spawn (echo-exe) {url}
|
|
|
|
Then "Executing * with args ['http://localhost:(port)/data/title%20with%20spaces.html'], userscript=False" should be logged
|
2016-04-20 16:58:14 +02:00
|
|
|
|
|
|
|
Scenario: Running :spawn with url variable in pretty decoded format
|
|
|
|
When I open data/title with spaces.html
|
2016-09-08 23:14:10 +02:00
|
|
|
And I run :spawn (echo-exe) {url:pretty}
|
|
|
|
Then "Executing * with args ['http://localhost:(port)/data/title with spaces.html'], userscript=False" should be logged
|
2016-04-20 16:58:14 +02:00
|
|
|
|
2016-05-29 18:35:43 +02:00
|
|
|
@posix
|
2016-03-25 18:21:38 +01:00
|
|
|
Scenario: Running :spawn with userscript
|
2016-04-20 16:58:14 +02:00
|
|
|
When I open about:blank
|
2016-05-30 16:21:32 +02:00
|
|
|
And I run :spawn -u (testdata)/userscripts/open_current_url
|
2016-03-25 18:21:38 +01:00
|
|
|
And I wait until about:blank is loaded
|
|
|
|
Then the following tabs should be open:
|
|
|
|
- about:blank
|
|
|
|
- about:blank (active)
|
2016-09-06 20:33:48 +02:00
|
|
|
|
2016-09-06 18:41:24 +02:00
|
|
|
@windows
|
|
|
|
Scenario: Running :spawn with userscript on Windows
|
|
|
|
When I open about:blank
|
|
|
|
And I run :spawn -u (testdata)/userscripts/open_current_url.bat
|
|
|
|
And I wait until about:blank is loaded
|
|
|
|
Then the following tabs should be open:
|
|
|
|
- about:blank
|
2016-09-08 23:13:00 +02:00
|
|
|
- about:blank (active)
|