bdd: Add some tests for :follow-selected.
This commit is contained in:
parent
916b294976
commit
a2c3f8c402
@ -5,7 +5,7 @@
|
||||
<title>Caret mode</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>one two three<br/>eins zwei drei</p>
|
||||
<p><a href="/data/hello.txt">one</a> two three<br/>eins zwei drei</p>
|
||||
<p>four five six<br/>vier fünf sechs</p>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -267,3 +267,30 @@ Feature: Caret mode
|
||||
And I run :drop-selection
|
||||
And I run :yank-selected
|
||||
Then the message "Nothing to yank" should be shown.
|
||||
|
||||
# :follow-selected
|
||||
|
||||
Scenario: :follow-selected without a selection
|
||||
When I run :follow-selected
|
||||
Then no crash should happen
|
||||
|
||||
Scenario: :follow-selected with text
|
||||
When I run :move-to-next-word
|
||||
And I run :toggle-selection
|
||||
And I run :move-to-end-of-word
|
||||
And I run :follow-selected
|
||||
Then no crash should happen
|
||||
|
||||
Scenario: :follow-selected with link (with JS)
|
||||
When I set content -> allow-javascript to true
|
||||
And I run :toggle-selection
|
||||
And I run :move-to-end-of-word
|
||||
And I run :follow-selected
|
||||
Then data/hello.txt should be loaded
|
||||
|
||||
Scenario: :follow-selected with link (without JS)
|
||||
When I set content -> allow-javascript to false
|
||||
And I run :toggle-selection
|
||||
And I run :move-to-end-of-word
|
||||
And I run :follow-selected
|
||||
Then data/hello.txt should be loaded
|
||||
|
Loading…
Reference in New Issue
Block a user