2017-03-31 17:16:31 +02:00
|
|
|
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
|
|
|
|
|
2015-11-02 23:40:10 +01:00
|
|
|
Feature: Zooming in and out
|
|
|
|
|
|
|
|
Background:
|
|
|
|
Given I open data/hello.txt
|
2015-11-15 20:48:07 +01:00
|
|
|
And I set ui -> zoom-levels to 50%,90%,100%,110%,120%
|
2015-11-03 07:00:46 +01:00
|
|
|
And I run :tab-only
|
2015-11-02 23:40:10 +01:00
|
|
|
|
|
|
|
Scenario: Zooming in
|
|
|
|
When I run :zoom-in
|
2015-11-26 17:50:39 +01:00
|
|
|
Then the message "Zoom level: 110%" should be shown
|
2015-11-12 22:10:13 +01:00
|
|
|
And the zoom should be 110%
|
2015-11-02 23:40:10 +01:00
|
|
|
|
|
|
|
Scenario: Zooming out
|
|
|
|
When I run :zoom-out
|
2015-11-26 17:50:39 +01:00
|
|
|
Then the message "Zoom level: 90%" should be shown
|
2015-11-12 22:10:13 +01:00
|
|
|
And the zoom should be 90%
|
2015-11-02 23:40:10 +01:00
|
|
|
|
2015-11-15 20:48:07 +01:00
|
|
|
Scenario: Zooming in with count
|
|
|
|
When I run :zoom-in with count 2
|
2015-11-26 17:50:39 +01:00
|
|
|
Then the message "Zoom level: 120%" should be shown
|
2015-11-15 20:48:07 +01:00
|
|
|
And the zoom should be 120%
|
|
|
|
|
2017-02-05 00:13:11 +01:00
|
|
|
# https://github.com/qutebrowser/qutebrowser/issues/1118
|
2015-11-16 07:17:43 +01:00
|
|
|
Scenario: Zooming in with very big count
|
|
|
|
When I run :zoom-in with count 99999999999
|
2016-06-06 13:23:06 +02:00
|
|
|
Then the message "Zoom level: 120%" should be shown
|
|
|
|
And the zoom should be 120%
|
|
|
|
|
2017-02-05 00:13:11 +01:00
|
|
|
# https://github.com/qutebrowser/qutebrowser/issues/1118
|
2016-06-06 13:23:06 +02:00
|
|
|
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%
|
|
|
|
|
2017-02-05 00:13:11 +01:00
|
|
|
# https://github.com/qutebrowser/qutebrowser/issues/1118
|
2016-06-06 13:23:06 +02:00
|
|
|
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%
|
2015-11-16 07:17:43 +01:00
|
|
|
|
2015-11-15 20:48:07 +01:00
|
|
|
Scenario: Zooming out with count
|
|
|
|
When I run :zoom-out with count 2
|
2015-11-26 17:50:39 +01:00
|
|
|
Then the message "Zoom level: 50%" should be shown
|
2015-11-15 20:48:07 +01:00
|
|
|
And the zoom should be 50%
|
|
|
|
|
2015-11-02 23:40:10 +01:00
|
|
|
Scenario: Setting zoom
|
|
|
|
When I run :zoom 50
|
2015-11-26 17:50:39 +01:00
|
|
|
Then the message "Zoom level: 50%" should be shown
|
2015-11-12 22:10:13 +01:00
|
|
|
And the zoom should be 50%
|
2015-11-02 23:40:10 +01:00
|
|
|
|
2017-06-26 21:51:35 +02:00
|
|
|
Scenario: Setting zoom with trailing %
|
|
|
|
When I run :zoom 50%
|
|
|
|
Then the message "Zoom level: 50%" should be shown
|
|
|
|
And the zoom should be 50%
|
|
|
|
|
2015-11-15 20:48:07 +01:00
|
|
|
Scenario: Setting zoom with count
|
|
|
|
When I run :zoom with count 40
|
2015-11-26 17:50:39 +01:00
|
|
|
Then the message "Zoom level: 40%" should be shown
|
2015-11-15 20:48:07 +01:00
|
|
|
And the zoom should be 40%
|
|
|
|
|
2015-11-02 23:40:10 +01:00
|
|
|
Scenario: Resetting zoom
|
2015-11-12 22:10:13 +01:00
|
|
|
When I set ui -> default-zoom to 42%
|
|
|
|
And I run :zoom 50
|
2015-11-02 23:40:10 +01:00
|
|
|
And I run :zoom
|
2015-11-26 17:50:39 +01:00
|
|
|
Then the message "Zoom level: 42%" should be shown
|
2015-11-12 22:10:13 +01:00
|
|
|
And the zoom should be 42%
|
|
|
|
|
|
|
|
Scenario: Setting zoom to invalid value
|
|
|
|
When I run :zoom -1
|
2015-11-26 17:50:39 +01:00
|
|
|
Then the error "Can't zoom -1%!" should be shown
|
2015-11-16 07:17:43 +01:00
|
|
|
|
|
|
|
Scenario: Setting zoom with very big count
|
|
|
|
When I run :zoom with count 99999999999
|
2015-11-26 17:50:39 +01:00
|
|
|
Then the message "Zoom level: 99999999999%" should be shown
|
2016-01-06 18:08:00 +01:00
|
|
|
|
|
|
|
Scenario: Setting zoom with argument and count
|
|
|
|
When I run :zoom 50 with count 60
|
2016-08-02 17:29:35 +02:00
|
|
|
Then the message "Zoom level: 60%" should be shown
|
|
|
|
And the zoom should be 60%
|
2016-06-15 14:44:01 +02:00
|
|
|
|
|
|
|
# Fixed in QtWebEngine branch
|
|
|
|
@xfail
|
|
|
|
Scenario: Zooming in with cloned tab
|
|
|
|
When I set ui -> default-zoom to 100%
|
|
|
|
And I run :zoom-in
|
|
|
|
And I wait for "Zoom level: 110%" in the log
|
|
|
|
And I run :tab-clone
|
|
|
|
And I wait until data/hello.txt is loaded
|
|
|
|
And I run :zoom-in
|
|
|
|
Then the message "Zoom level: 120%" should be shown
|
|
|
|
And the zoom should be 120%
|
2016-12-06 20:28:18 +01:00
|
|
|
|
2017-02-05 00:13:11 +01:00
|
|
|
# https://github.com/qutebrowser/qutebrowser/issues/2183
|
2016-12-20 21:32:46 +01:00
|
|
|
@qtwebengine_flaky
|
2016-12-06 20:28:18 +01:00
|
|
|
Scenario: Setting a default zoom
|
|
|
|
When I set ui -> default-zoom to 200%
|
|
|
|
And I open data/hello.txt in a new tab
|
|
|
|
And I run :tab-only
|
|
|
|
Then the zoom should be 200%
|