Use upper-case Monospace in test_progress_affecting_statusbar_height
While the test worked again witheb4691adfc
, it broke again immediately because of40ee89bddc
. With that fix in, the lower-case monospace in the set value was immediately replaced by the full list of fonts again. With an upper-case Monospace, this won't happen. Fixes #2825, for real this time.
This commit is contained in:
parent
b04a233e8d
commit
73ea316501
@ -76,7 +76,7 @@ def test_progress_affecting_statusbar_height(config_stub, fake_statusbar,
|
|||||||
https://github.com/qutebrowser/qutebrowser/pull/890
|
https://github.com/qutebrowser/qutebrowser/pull/890
|
||||||
"""
|
"""
|
||||||
# For some reason on Windows, with Courier, there's a 1px difference.
|
# For some reason on Windows, with Courier, there's a 1px difference.
|
||||||
config_stub.val.fonts.statusbar = '8pt monospace'
|
config_stub.val.fonts.statusbar = '8pt Monospace'
|
||||||
|
|
||||||
expected_height = fake_statusbar.fontMetrics().height()
|
expected_height = fake_statusbar.fontMetrics().height()
|
||||||
assert fake_statusbar.height() == expected_height
|
assert fake_statusbar.height() == expected_height
|
||||||
|
Loading…
Reference in New Issue
Block a user