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.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/end2end/test_invocations.py b/tests/end2end/test_invocations.py
index 01014618f..f55bfbd51 100644
--- a/tests/end2end/test_invocations.py
+++ b/tests/end2end/test_invocations.py
@@ -645,6 +645,8 @@ def test_cookies_store(quteproc_new, request, short_tmpdir, store):
),
('yellow', 'lightness-hsl', {None: testutils.Color(204, 204, 0)}),
('yellow', 'brightness-rgb', {None: testutils.Color(0, 0, 204)}),
+
+ ('mathml', None, {None: testutils.Color(255, 255, 255)}),
])
def test_dark_mode(webengine_versions, quteproc_new, request,
filename, algorithm, colors):
@@ -654,8 +656,9 @@ def test_dark_mode(webengine_versions, quteproc_new, request,
args = _base_args(request.config) + [
'--temp-basedir',
'-s', 'colors.webpage.darkmode.enabled', 'true',
- '-s', 'colors.webpage.darkmode.algorithm', algorithm,
]
+ if algorithm is not None:
+ args += ['-s', 'colors.webpage.darkmode.algorithm', algorithm]
quteproc_new.start(args)
ver = webengine_versions.webengine