bdd: Handle some more corner cases in commands.py.

This commit is contained in:
Florian Bruhin 2016-01-06 18:08:00 +01:00
parent 3f15186a64
commit 4bb38f1488
2 changed files with 19 additions and 0 deletions

View File

@ -92,6 +92,13 @@ Feature: Going back and forward.
- url: http://localhost:*/data/backforward/2.txt
- url: http://localhost:*/data/backforward/3.txt
Scenario: Going back too much with count.
Given I open data/backforward/1.txt
When I open data/backforward/2.txt
And I open data/backforward/3.txt
And I run :back with count 3
Then the error "At beginning of history." should be shown
Scenario: Going back with very big count.
Given I open data/backforward/1.txt
When I run :back with count 99999999999
@ -132,3 +139,11 @@ Feature: Going back and forward.
Given I open data/backforward/1.txt
When I run :forward
Then the error "At end of history." should be shown
Scenario: Going forward too much with count.
Given I open data/backforward/1.txt
When I open data/backforward/2.txt
And I open data/backforward/3.txt
And I run :back with count 2
And I run :forward with count 3
Then the error "At end of history." should be shown

View File

@ -55,3 +55,7 @@ Feature: Zooming in and out
Scenario: Setting zoom with very big count
When I run :zoom with count 99999999999
Then the message "Zoom level: 99999999999%" should be shown
Scenario: Setting zoom with argument and count
When I run :zoom 50 with count 60
Then the error "Both count and argument given!" should be shown