From 53ef16e26b9fb333b8f77ccc99db448ca2935f8a Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 6 Oct 2016 10:40:28 +0200 Subject: [PATCH] Try to stabilize test_insert_mode --- .../data/insert_mode_settings/html/autofocus.html | 11 ++++++++++- .../end2end/data/insert_mode_settings/html/input.html | 11 ++++++++++- .../data/insert_mode_settings/html/textarea.html | 10 +++++++++- tests/end2end/test_insert_mode.py | 4 ++++ 4 files changed, 33 insertions(+), 3 deletions(-) diff --git a/tests/end2end/data/insert_mode_settings/html/autofocus.html b/tests/end2end/data/insert_mode_settings/html/autofocus.html index db5399252..5b707426f 100644 --- a/tests/end2end/data/insert_mode_settings/html/autofocus.html +++ b/tests/end2end/data/insert_mode_settings/html/autofocus.html @@ -3,8 +3,17 @@ Inputs Autofocus + - + diff --git a/tests/end2end/data/insert_mode_settings/html/input.html b/tests/end2end/data/insert_mode_settings/html/input.html index 2965693d3..0617cae3f 100644 --- a/tests/end2end/data/insert_mode_settings/html/input.html +++ b/tests/end2end/data/insert_mode_settings/html/input.html @@ -3,8 +3,17 @@ Input + - + diff --git a/tests/end2end/data/insert_mode_settings/html/textarea.html b/tests/end2end/data/insert_mode_settings/html/textarea.html index 403809a3a..1ab9d7524 100644 --- a/tests/end2end/data/insert_mode_settings/html/textarea.html +++ b/tests/end2end/data/insert_mode_settings/html/textarea.html @@ -3,8 +3,16 @@ Textarea + - + diff --git a/tests/end2end/test_insert_mode.py b/tests/end2end/test_insert_mode.py index cd57968ca..6939dae0e 100644 --- a/tests/end2end/test_insert_mode.py +++ b/tests/end2end/test_insert_mode.py @@ -56,6 +56,10 @@ def test_insert_mode(file_name, elem_id, source, input_text, auto_insert, # second time. quteproc.send_cmd(':debug-set-fake-clipboard "{}"'.format(input_text)) quteproc.send_cmd(':insert-text {clipboard}') + else: + raise ValueError("Invalid source {!r}".format(source)) + + quteproc.wait_for_js('contents: {}'.format(input_text)) quteproc.send_cmd(':leave-mode') quteproc.send_cmd(':hint all')