diff options
author | Florian Bruhin <me@the-compiler.org> | 2019-09-13 14:38:44 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2019-09-13 17:02:22 +0200 |
commit | d985495d41cfba665025e55190d67f9071987eee (patch) | |
tree | 447f425bd54d41ce761ce240594a0eb287006815 /tests/unit/mainwindow/statusbar | |
parent | 7af6f4f9ae36111971ca60680e76a1d72a454d0b (diff) | |
download | qutebrowser-d985495d41cfba665025e55190d67f9071987eee.tar.gz qutebrowser-d985495d41cfba665025e55190d67f9071987eee.zip |
Pre-calculate scrolling percentage strings
Diffstat (limited to 'tests/unit/mainwindow/statusbar')
-rw-r--r-- | tests/unit/mainwindow/statusbar/test_percentage.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/mainwindow/statusbar/test_percentage.py b/tests/unit/mainwindow/statusbar/test_percentage.py index dc69467ab..515a7c873 100644 --- a/tests/unit/mainwindow/statusbar/test_percentage.py +++ b/tests/unit/mainwindow/statusbar/test_percentage.py @@ -57,7 +57,8 @@ def test_percentage_text(percentage, y, raw, expected): parametrized. expected: expected text given y position. parametrized. """ - percentage.raw = raw + if raw: + percentage.set_raw() percentage.set_perc(x=None, y=y) assert percentage.text() == expected |