qutebrowser/tests/end2end
Martin Tournoij 7f13c9a3c3
Relax commandline parsing a bit
Problem 1: Entering a command of `:::save` gives an error.
Problem 2: Entering a command of `:save\n` gives an error.

Both scenarios may seem a bit silly at first, but I encountered both by
copy/pasting a command:

1. Enter `:` in qutebrowser.
2. Copy a full line from a terminal starting with `:`.
3. You will now have both of the above problems.

Solution: Trim all whitespace and `:` of a command. This is also what
Vim does, by the way.
2017-03-31 17:14:11 +01:00
..
data Stabilize history.replaceState tests 2017-03-31 13:05:34 +02:00
features Relax commandline parsing a bit 2017-03-31 17:14:11 +01:00
fixtures Ignore getrlimit error during tests 2017-03-31 13:03:40 +02:00
conftest.py Fix BDD version check operators 2017-03-08 20:56:30 +01:00
test_dirbrowser.py Mark test_dirbrowser as qtwebengine_skip 2016-08-18 23:05:31 +02:00
test_hints_html.py tests: Add QUTE_BDD_WEBENGINE environment variable 2016-09-05 15:08:00 +02:00
test_insert_mode.py Move cursor to end with input elements on QtWebEngine 2017-03-01 17:30:48 +01:00
test_invocations.py Run more invocation tests with QtWebEngine 2017-03-31 06:18:43 +02:00
test_mhtml_e2e.py Drop PyQt < 5.7.1 support for QtWebEngine 2017-02-17 14:42:57 +01:00