Add support for non-link buttons to test_hints

This commit is contained in:
Jay Kamat 2017-12-18 17:04:50 -08:00
parent 344ebed6ad
commit b87f0b6f65
No known key found for this signature in database
GPG Key ID: 5D2E399600F4F7B5

View File

@ -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)