summaryrefslogtreecommitdiff
path: root/tests/unit/mainwindow/statusbar/test_textbase.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/mainwindow/statusbar/test_textbase.py')
-rw-r--r--tests/unit/mainwindow/statusbar/test_textbase.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/mainwindow/statusbar/test_textbase.py b/tests/unit/mainwindow/statusbar/test_textbase.py
index 16126d344..c2b91b7d7 100644
--- a/tests/unit/mainwindow/statusbar/test_textbase.py
+++ b/tests/unit/mainwindow/statusbar/test_textbase.py
@@ -26,10 +26,10 @@ from qutebrowser.mainwindow.statusbar.textbase import TextBase
@pytest.mark.parametrize('elidemode, check', [
- (Qt.ElideRight, lambda s: s.endswith('…') or s.endswith('...')),
- (Qt.ElideLeft, lambda s: s.startswith('…') or s.startswith('...')),
- (Qt.ElideMiddle, lambda s: '…' in s or '...' in s),
- (Qt.ElideNone, lambda s: '…' not in s and '...' not in s),
+ (Qt.TextElideMode.ElideRight, lambda s: s.endswith('…') or s.endswith('...')),
+ (Qt.TextElideMode.ElideLeft, lambda s: s.startswith('…') or s.startswith('...')),
+ (Qt.TextElideMode.ElideMiddle, lambda s: '…' in s or '...' in s),
+ (Qt.TextElideMode.ElideNone, lambda s: '…' not in s and '...' not in s),
])
def test_elided_text(fake_statusbar, qtbot, elidemode, check):
"""Ensure that a widget too small to hold the entire label text will elide.