summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2019-09-10 17:27:49 +0200
committerFlorian Bruhin <me@the-compiler.org>2019-09-10 17:27:49 +0200
commit51e515f91ca94a3ce0f7831af26d8d68441064f7 (patch)
treea022024581cb0673942bb4d4d4b934370a70b95d /tests/unit
parentac6aa571c329ff63d77435f4da1e2b15d37521a4 (diff)
parent156207438388c477d47dad51a91ce63f6b87e5f7 (diff)
downloadqutebrowser-51e515f91ca94a3ce0f7831af26d8d68441064f7.tar.gz
qutebrowser-51e515f91ca94a3ce0f7831af26d8d68441064f7.zip
Merge remote-tracking branch 'origin/pr/4585'
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/keyinput/test_keyutils.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/keyinput/test_keyutils.py b/tests/unit/keyinput/test_keyutils.py
index fd6816156..e0eb2bec2 100644
--- a/tests/unit/keyinput/test_keyutils.py
+++ b/tests/unit/keyinput/test_keyutils.py
@@ -158,9 +158,16 @@ class TestKeyToString:
(Qt.Key_A,
Qt.ControlModifier | Qt.AltModifier | Qt.MetaModifier | Qt.ShiftModifier,
'<Meta+Ctrl+Alt+Shift+a>'),
+ (ord('Œ'), Qt.NoModifier, '<Œ>'),
+ (ord('Œ'), Qt.ShiftModifier, '<Shift+Œ>'),
+ (ord('Œ'), Qt.GroupSwitchModifier, '<AltGr+Œ>'),
+ (ord('Œ'), Qt.GroupSwitchModifier | Qt.ShiftModifier, '<AltGr+Shift+Œ>'),
(Qt.Key_Shift, Qt.ShiftModifier, '<Shift>'),
(Qt.Key_Shift, Qt.ShiftModifier | Qt.ControlModifier, '<Ctrl+Shift>'),
+ (Qt.Key_Alt, Qt.AltModifier, '<Alt>'),
+ (Qt.Key_Shift, Qt.GroupSwitchModifier | Qt.ShiftModifier, '<AltGr+Shift>'),
+ (Qt.Key_AltGr, Qt.GroupSwitchModifier, '<AltGr>'),
])
def test_key_info_str(key, modifiers, expected):
assert str(keyutils.KeyInfo(key, modifiers)) == expected