tests: Use last history item to check scroll pos

This commit is contained in:
Florian Bruhin 2016-08-11 11:56:11 +02:00
parent bb2eee6178
commit aafdc225bc

View File

@ -497,7 +497,7 @@ def should_quit(qtbot, quteproc):
def _get_scroll_values(quteproc):
data = quteproc.get_session()
pos = data['windows'][0]['tabs'][0]['history'][0]['scroll-pos']
pos = data['windows'][0]['tabs'][0]['history'][-1]['scroll-pos']
return (pos['x'], pos['y'])