From a9fdf09a047b29158d7d97d389e42979793fa92f Mon Sep 17 00:00:00 2001 From: Tarcisio Fedrizzi Date: Sun, 28 Feb 2016 23:44:26 +0100 Subject: [PATCH] Adds test of the heuristic --- tests/integration/features/yankpaste.feature | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/integration/features/yankpaste.feature b/tests/integration/features/yankpaste.feature index b1e329ce9..ce6ec2b1a 100644 --- a/tests/integration/features/yankpaste.feature +++ b/tests/integration/features/yankpaste.feature @@ -126,6 +126,18 @@ Feature: Yanking and pasting. - data/hello2.txt - data/hello3.txt + Scenario: Pasting multiline text + Given I have a fresh instance + When I set searchengines -> DEFAULT to http://localhost:(port)/data/hello.txt?q={} + And I put the following lines into the clipboard: + this url: + http://qutebrowser.org + should not open + And I run :paste -t + Then the following tabs should be open: + - about:blank + - data/hello.txt?q=this%20url%3A%0Ahttp%3A//qutebrowser.org%0Ashould%20not%20open (active) + Scenario: Pasting multiple urls in a background tab Given I open about:blank When I run :tab-only