tests: Use last history item to check scroll pos
This commit is contained in:
parent
bb2eee6178
commit
aafdc225bc
@ -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'])
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user