tests: Make scrolling checks stricter

This commit is contained in:
Florian Bruhin 2016-09-29 07:13:34 +02:00
parent 450730df2c
commit b0a2bfa3ee

View File

@ -568,11 +568,11 @@ def check_scrolled(quteproc, direction):
quteproc.wait_scroll_pos_changed()
x, y = _get_scroll_values(quteproc)
if direction == 'horizontally':
assert x != 0
assert x > 0
assert y == 0
else:
assert x == 0
assert y != 0
assert y > 0
@bdd.then("the page should not be scrolled")