Fix initial tests

This commit is contained in:
thuck 2016-11-16 08:19:21 +01:00
parent e514b0d58e
commit 41adafdec4
2 changed files with 15 additions and 4 deletions

View File

@ -160,7 +160,7 @@ def clean_open_tabs(quteproc):
quteproc.set_setting('tabs', 'last-close', 'blank')
quteproc.send_cmd(':window-only')
quteproc.send_cmd(':tab-only')
quteproc.send_cmd(':tab-close')
quteproc.send_cmd(':tab-close --force')
@bdd.given('pdfjs is available')

View File

@ -1011,21 +1011,32 @@ Feature: Tab management
- data/numbers/2.txt
Scenario: :tab-pin unpin
When I run :tab-pin
When I open data/numbers/1.txt
And I open data/numbers/2.txt in a new tab
And I open data/numbers/3.txt in a new tab
And I run :tab-pin
And I run :tab-pin
Then the following tabs should be open:
- data/numbers/1.txt
- data/numbers/2.txt
- data/numbers/3.txt (active)
Scenario: :tab-pin to index 2
When I run :tab-pin 2
When I open data/numbers/1.txt
And I open data/numbers/2.txt in a new tab
And I open data/numbers/3.txt in a new tab
And I run :tab-pin 2
Then the following tabs should be open:
- data/numbers/1.txt
- data/numbers/3.txt (active)
- data/numbers/2.txt
Scenario: :tab-pin unpin to index 1
When I run :tab-pin 1
When I open data/numbers/1.txt
And I open data/numbers/2.txt in a new tab
And I open data/numbers/3.txt in a new tab
And I run :tab-pin
And I run :tab-pin 1
Then the following tabs should be open:
- data/numbers/3.txt (active)
- data/numbers/1.txt