From 0ab1902c98d667f36e1eaa892c620e0a0004df87 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Tue, 6 Sep 2016 18:41:24 +0200 Subject: [PATCH] add an userscript test for Windows --- tests/end2end/data/userscripts/open_current_url.bat | 1 + tests/end2end/features/spawn.feature | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 tests/end2end/data/userscripts/open_current_url.bat diff --git a/tests/end2end/data/userscripts/open_current_url.bat b/tests/end2end/data/userscripts/open_current_url.bat new file mode 100644 index 000000000..60d72d594 --- /dev/null +++ b/tests/end2end/data/userscripts/open_current_url.bat @@ -0,0 +1 @@ +echo open -t %QUTE_URL% >> "%QUTE_FIFO%" \ No newline at end of file diff --git a/tests/end2end/features/spawn.feature b/tests/end2end/features/spawn.feature index 2d43b011b..76ef5620a 100644 --- a/tests/end2end/features/spawn.feature +++ b/tests/end2end/features/spawn.feature @@ -40,3 +40,11 @@ Feature: :spawn Then the following tabs should be open: - about:blank - about:blank (active) + @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 + - about:blank (active) \ No newline at end of file