From b87f0b6f65d5ca7d05426ee3397fb724e667834a Mon Sep 17 00:00:00 2001 From: Jay Kamat Date: Mon, 18 Dec 2017 17:04:50 -0800 Subject: [PATCH] Add support for non-link buttons to test_hints --- tests/end2end/test_hints_html.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/end2end/test_hints_html.py b/tests/end2end/test_hints_html.py index abc106505..ff4837020 100644 --- a/tests/end2end/test_hints_html.py +++ b/tests/end2end/test_hints_html.py @@ -106,7 +106,11 @@ def test_hints(test_name, zoom_text_only, zoom_level, find_implementation, quteproc.set_setting('hints.find_implementation', find_implementation) quteproc.send_cmd(':zoom {}'.format(zoom_level)) # follow hint - quteproc.send_cmd(':hint links normal') + if 'button' in test_name: + # We are hinting buttons, link hinting will not work + quteproc.send_cmd(':hint all normal') + else: + quteproc.send_cmd(':hint links normal') quteproc.wait_for(message='hints: a', category='hints') quteproc.send_cmd(':follow-hint a') quteproc.wait_for_load_finished('data/' + parsed.target)