Add :tab-only tests for --force

This commit is contained in:
Jay Kamat 2017-05-12 11:06:17 -07:00
parent 66dfb1b1c9
commit 3e3f4b4164
No known key found for this signature in database
GPG Key ID: 5D2E399600F4F7B5

View File

@ -1071,18 +1071,18 @@ Feature: Tab management
- data/numbers/1.txt
- data/numbers/2.txt
Scenario: :tab-pin prompt yes
Scenario: Pinned :tab-close prompt yes
When I open data/numbers/1.txt
And I run :tab-pin
And I open data/numbers/2.txt in a new tab
And I run :tab-pin
And I run :tab-close
And I wait for "Asking question *" in the log
And I wait for "*want to close a pinned tab*" in the log
And I run :prompt-accept yes
Then the following tabs should be open:
- data/numbers/1.txt (active)
Scenario: :tab-pin prompt no
Scenario: Pinned :tab-close prompt no
When I open data/numbers/1.txt
And I run :tab-pin
And I open data/numbers/2.txt in a new tab
@ -1094,6 +1094,39 @@ Feature: Tab management
- data/numbers/1.txt
- data/numbers/2.txt (active)
Scenario: Pinned :tab-only prompt yes
When I open data/numbers/1.txt
And I run :tab-pin
And I open data/numbers/2.txt in a new tab
And I run :tab-pin
And I run :tab-next
And I run :tab-only
And I wait for "*want to close a pinned tab*" in the log
And I run :prompt-accept yes
Then the following tabs should be open:
- data/numbers/1.txt (active)
Scenario: Pinned :tab-only prompt no
When I open data/numbers/1.txt
And I run :tab-pin
And I open data/numbers/2.txt in a new tab
And I run :tab-pin
And I run :tab-next
And I run :tab-only
And I wait for "*want to close a pinned tab*" in the log
And I run :prompt-accept no
Then the following tabs should be open:
- data/numbers/1.txt (active)
- data/numbers/2.txt
Scenario: Pinned :tab-only close all but pinned tab
When I open data/numbers/1.txt
And I open data/numbers/2.txt in a new tab
And I run :tab-pin
And I run :tab-only
Then the following tabs should be open:
- data/numbers/2.txt (active)
Scenario: :tab-pin open url
When I open data/numbers/1.txt
And I run :tab-pin