bdd: Handle some more corner cases in commands.py.
This commit is contained in:
parent
3f15186a64
commit
4bb38f1488
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user