diff options
author | Florian Bruhin <git@the-compiler.org> | 2017-02-27 14:01:58 +0100 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2017-02-27 14:02:13 +0100 |
commit | 07a20bd1ad0c4fbdbd1942038c87399a9f704fb3 (patch) | |
tree | 2550cc61da34e007c4848f908c33588bd96fe57e | |
parent | 2bb4c2fb6efe1f707df3ad24bb46af7c556bf7b1 (diff) | |
download | qutebrowser-07a20bd1ad0c4fbdbd1942038c87399a9f704fb3.tar.gz qutebrowser-07a20bd1ad0c4fbdbd1942038c87399a9f704fb3.zip |
Add an end2end test for --qt-arg
-rw-r--r-- | tests/end2end/test_invocations.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/end2end/test_invocations.py b/tests/end2end/test_invocations.py index 530f4feb0..a22d546c5 100644 --- a/tests/end2end/test_invocations.py +++ b/tests/end2end/test_invocations.py @@ -185,3 +185,17 @@ def test_version(request): output = bytes(proc.proc.readAllStandardOutput()).decode('utf-8') assert re.search(r'^qutebrowser\s+v\d+(\.\d+)', output) is not None + + +def test_qt_arg(request, quteproc_new, tmpdir): + """Test --qt-arg.""" + args = (_base_args(request.config) + + ['--qt-arg', 'stylesheet', str(tmpdir / 'does-not-exist')]) + quteproc_new.start(args) + + msg = 'QCss::Parser - Failed to load file "*does-not-exist"' + line = quteproc_new.wait_for(message=msg) + line.expected = True + + quteproc_new.send_cmd(':quit') + quteproc_new.wait_for_quit() |