From 648f89ef3147cc360222aef45a8d2d5ea1b1d910 Mon Sep 17 00:00:00 2001 From: Ryan Roden-Corrent Date: Sat, 21 May 2016 07:48:52 -0400 Subject: [PATCH] Implement more tests for the hinting. Validate the hint spawn fix as well as add feature tests for previously untested hinting behaviors (fill, run, --rapid). There is still no test for the 'userscript' target as running a userscript from hint mode during a test does not get the same redirection as the 'I execute the userscript ...' statement, That is, it looks in /usr/local/share/qutebrowser/userscripts rather than tests/integration/data/userscripts. --- tests/integration/features/hints.feature | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/tests/integration/features/hints.feature b/tests/integration/features/hints.feature index 1e3001c0b..b5959fe1b 100644 --- a/tests/integration/features/hints.feature +++ b/tests/integration/features/hints.feature @@ -45,7 +45,7 @@ Feature: Using hints Then no crash should happen Scenario: Using :hint spawn with flags and -- (issue 797) - When I open data/hints/simple.html + When I open data/hints/html/simple.html And I run :hint -- all spawn -v echo And I run :follow-hint a Then the message "Command exited successfully." should be shown @@ -56,6 +56,25 @@ Feature: Using hints And I run :follow-hint a Then the message "Command exited successfully." should be shown + Scenario: Using :hint spawn with flags and --rapid (issue 797) + When I open data/hints/html/simple.html + And I run :hint --rapid all spawn -v echo + And I run :follow-hint a + Then the message "Command exited successfully." should be shown + + Scenario: Using :hint run + When I open data/hints/html/simple.html + And I run :hint all run message-info {hint-url} + And I run :follow-hint a + Then the message "http://localhost:(port)/data/hello.txt" should be shown + + Scenario: Using :hint fill + When I open data/hints/html/simple.html + And I run :hint all fill :message-info {hint-url} + And I run :follow-hint a + And I press the key "" + Then the message "http://localhost:(port)/data/hello.txt" should be shown + Scenario: Yanking to primary selection without it being supported (#1336) When selection is not supported And I run :debug-set-fake-clipboard