Add basic test for spawning userscripts

This commit is contained in:
Philipp Hansch 2016-03-25 18:21:38 +01:00
parent 69da5d7545
commit 0083538491
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,3 @@
#!/bin/bash
echo "open -t $QUTE_URL" >> "$QUTE_FIFO"

View File

@ -15,3 +15,10 @@ Feature: :spawn
Scenario: Running :spawn with url variable
When I run :spawn echo {url}
Then "Executing echo with args ['about:blank'], userscript=False" should be logged
Scenario: Running :spawn with userscript
When I run :spawn --userscript open_current_url
And I wait until about:blank is loaded
Then the following tabs should be open:
- about:blank
- about:blank (active)