diff options
author | Florian Bruhin <git@the-compiler.org> | 2018-06-23 14:27:07 +0200 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2018-06-23 14:27:07 +0200 |
commit | a02c25dfb1d0db1a850933250b270f1390b43e21 (patch) | |
tree | c0d1a0d283501c1dd7c644ccd87766f85ab6afb4 /tests/end2end/features/test_history_bdd.py | |
parent | d2254ca48b1f79512727ff4fba38a2b4222c6850 (diff) | |
download | qutebrowser-a02c25dfb1d0db1a850933250b270f1390b43e21.tar.gz qutebrowser-a02c25dfb1d0db1a850933250b270f1390b43e21.zip |
Don't escape URLs for qute://history
We only use the URL to set a 'href' attribute, which does not need escaping.
See #4011
Fixes #4012
Diffstat (limited to 'tests/end2end/features/test_history_bdd.py')
-rw-r--r-- | tests/end2end/features/test_history_bdd.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/end2end/features/test_history_bdd.py b/tests/end2end/features/test_history_bdd.py index 6efa08330..4d477d832 100644 --- a/tests/end2end/features/test_history_bdd.py +++ b/tests/end2end/features/test_history_bdd.py @@ -17,6 +17,7 @@ # You should have received a copy of the GNU General Public License # along with qutebrowser. If not, see <http://www.gnu.org/licenses/>. +import json import logging import re @@ -34,6 +35,19 @@ def turn_on_sql_history(quteproc): quteproc.wait_for_load_finished_url('qute://pyeval') +@bdd.then(bdd.parsers.parse("the query parameter {name} should be set to " + "{value}")) +def check_query(quteproc, name, value): + """Check if a given query is set correctly. + + This assumes we're on the server query page. + """ + content = quteproc.get_content() + data = json.loads(content) + print(data) + assert data[name] == value + + @bdd.then(bdd.parsers.parse("the history should contain:\n{expected}")) def check_history(quteproc, server, tmpdir, expected): path = tmpdir / 'history' |