summaryrefslogtreecommitdiff
path: root/tests/end2end/test_insert_mode.py
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2016-09-07 11:20:32 +0200
committerFlorian Bruhin <git@the-compiler.org>2016-09-07 11:20:32 +0200
commit948fa033c7339d6648af2141e88283105ffbaa31 (patch)
tree9b271424f9083bada545e19b2853308afe1225a9 /tests/end2end/test_insert_mode.py
parentee5a97206902cd44776966538b8296b92f38c4fe (diff)
downloadqutebrowser-948fa033c7339d6648af2141e88283105ffbaa31.tar.gz
qutebrowser-948fa033c7339d6648af2141e88283105ffbaa31.zip
Implement :insert-text for QtWebEngine
Diffstat (limited to 'tests/end2end/test_insert_mode.py')
-rw-r--r--tests/end2end/test_insert_mode.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/end2end/test_insert_mode.py b/tests/end2end/test_insert_mode.py
index a3edd651e..86fd22ba5 100644
--- a/tests/end2end/test_insert_mode.py
+++ b/tests/end2end/test_insert_mode.py
@@ -49,8 +49,11 @@ def test_insert_mode(file_name, elem_id, source, input_text, auto_insert,
quteproc.press_keys(input_text)
elif source == 'clipboard':
if request.config.webengine:
- pytest.xfail(reason="QtWebEngine TODO: :insert-text is not "
+ pytest.xfail(reason="QtWebEngine TODO: caret mode is not "
"implemented")
+ # Note we actually run the keypress tests with QtWebEngine, as for
+ # some reason it selects all the text when clicking the field the
+ # second time.
quteproc.send_cmd(':debug-set-fake-clipboard "{}"'.format(input_text))
quteproc.send_cmd(':insert-text {clipboard}')