Split test for yanking

This commit is contained in:
Julian Weigt 2016-08-25 13:41:47 +02:00
parent 193d219eaf
commit 853e75e3db
2 changed files with 9 additions and 18 deletions

View File

@ -1,14 +0,0 @@
<!DOCTYPE html>
<!-- target: hello.txt -->
<html>
<head>
<meta charset="utf-8">
<title>Simple links</title>
</head>
<body>
<a href="/data/hello.txt" id="link">First link</a>
<a href="/data/hello2.txt" id="link">Second link</a>
</body>
</html>

View File

@ -81,14 +81,19 @@ Feature: Using hints
And I hint with args "all userscript (testdata)/userscripts/echo_hint_text" and follow a
Then the message "Follow me!" should be shown
Scenario: Yanking
Scenario: Yanking to clipboard
When selection is supported
And I run :debug-set-fake-clipboard
And I open data/hints/simple2.html
And I open data/hints/html/simple.html
And I hint with args "links yank" and follow a
And I hint with args "links yank-primary" and follow s
Then the clipboard should contain "http://localhost:(port)/data/hello.txt"
And the primary selection should contain "http://localhost:(port)/data/hello2.txt"
Scenario: Yanking to primary selection
When selection is supported
And I run :debug-set-fake-clipboard
And I open data/hints/html/simple.html
And I hint with args "links yank-primary" and follow a
Then the primary selection should contain "http://localhost:(port)/data/hello.txt"
Scenario: Yanking to primary selection without it being supported (#1336)
When selection is not supported