@@ -583,6 +583,34 @@ Item {
584 spy.wait()
584 spy.wait()
585 compare(spy.count, 1)
585 compare(spy.count, 1)
587+ // test short swipe doesn't refresh on tall window
588+ mouseFlick(genericScopeView,
589+ genericScopeView.width/2, units.gu(10),
590+ genericScopeView.width/2, units.gu(20),
592+ mouseRelease(genericScopeView)
593+ compare(spy.count, 1)
595+ // resize window, repeat the test
596+ var initialHeight = shell.height
597+ shell.height = units.gu(30)
598+ waitForRendering(shell)
599+ mouseFlick(genericScopeView,
600+ genericScopeView.width/2, units.gu(10),
601+ genericScopeView.width/2, units.gu(20),
604+ tryCompare(pullToRefresh, "releaseToRefresh", true)
606+ mouseRelease(genericScopeView)
607+ tryCompare(pullToRefresh, "releaseToRefresh", false)
610+ compare(spy.count, 2)
612+ shell.height = initialHeight
613+ waitForRendering(shell)
588 function test_item_noninteractive() {
616 function test_item_noninteractive() {