summaryrefslogtreecommitdiff
path: root/tests/end2end/test_invocations.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/end2end/test_invocations.py')
-rw-r--r--tests/end2end/test_invocations.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/end2end/test_invocations.py b/tests/end2end/test_invocations.py
index e34bd912d..1680a838b 100644
--- a/tests/end2end/test_invocations.py
+++ b/tests/end2end/test_invocations.py
@@ -417,3 +417,18 @@ def test_referrer(quteproc_new, server, server2, request, value, expected):
expected = expected.replace(key, str(val))
assert headers.get('Referer') == expected
+
+
+@pytest.mark.qtwebkit_skip
+@utils.qt514
+def test_preferred_colorscheme(request, quteproc_new):
+ """Make sure the the preferred colorscheme is set."""
+ args = _base_args(request.config) + [
+ '--temp-basedir',
+ '-s', 'colors.webpage.prefers_color_scheme_dark', 'true',
+ ]
+ quteproc_new.start(args)
+
+ quteproc_new.send_cmd(':jseval '
+ 'matchMedia("(prefers-color-scheme: dark)").matches')
+ quteproc_new.wait_for(message='True')