qutebrowser/tests/end2end/features/zoom.feature
Florian Bruhin abfd789f9e Fix zooming with a too big count
Fixes #1118
Supersedes #1140
2016-06-06 13:25:01 +02:00

75 lines
2.6 KiB
Gherkin

Feature: Zooming in and out
Background:
Given I open data/hello.txt
And I set ui -> zoom-levels to 50%,90%,100%,110%,120%
And I run :tab-only
Scenario: Zooming in
When I run :zoom-in
Then the message "Zoom level: 110%" should be shown
And the zoom should be 110%
Scenario: Zooming out
When I run :zoom-out
Then the message "Zoom level: 90%" should be shown
And the zoom should be 90%
Scenario: Zooming in with count
When I run :zoom-in with count 2
Then the message "Zoom level: 120%" should be shown
And the zoom should be 120%
# https://github.com/The-Compiler/qutebrowser/issues/1118
Scenario: Zooming in with very big count
When I run :zoom-in with count 99999999999
Then the message "Zoom level: 120%" should be shown
And the zoom should be 120%
# https://github.com/The-Compiler/qutebrowser/issues/1118
Scenario: Zooming out with very big count
When I run :zoom-out with count 99999999999
Then the message "Zoom level: 50%" should be shown
And the zoom should be 50%
# https://github.com/The-Compiler/qutebrowser/issues/1118
Scenario: Zooming in with very big count and snapping in
When I run :zoom-in with count 99999999999
And I run :zoom-out
Then the message "Zoom level: 110%" should be shown
And the zoom should be 110%
Scenario: Zooming out with count
When I run :zoom-out with count 2
Then the message "Zoom level: 50%" should be shown
And the zoom should be 50%
Scenario: Setting zoom
When I run :zoom 50
Then the message "Zoom level: 50%" should be shown
And the zoom should be 50%
Scenario: Setting zoom with count
When I run :zoom with count 40
Then the message "Zoom level: 40%" should be shown
And the zoom should be 40%
Scenario: Resetting zoom
When I set ui -> default-zoom to 42%
And I run :zoom 50
And I run :zoom
Then the message "Zoom level: 42%" should be shown
And the zoom should be 42%
Scenario: Setting zoom to invalid value
When I run :zoom -1
Then the error "Can't zoom -1%!" should be shown
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