diff --git a/tests/integration/data/scroll.html b/tests/integration/data/scroll.html index 954267f04..3c9134b81 100644 --- a/tests/integration/data/scroll.html +++ b/tests/integration/data/scroll.html @@ -207,5 +207,8 @@ 198 199 This is a very long line so this page can be scrolled horizontally. Did you think this line would end here already? Nah, it does not. But now it will. Or will it? I think it's not long enough yet. + + next link to test the --top-navigate argument for :scroll-page. + prev link to test the --bottom-navigate argument for :scroll-page. diff --git a/tests/integration/features/scroll.feature b/tests/integration/features/scroll.feature index 3630acd9b..ec0bff2c6 100644 --- a/tests/integration/features/scroll.feature +++ b/tests/integration/features/scroll.feature @@ -128,3 +128,12 @@ Feature: Scrolling When I run :scroll-page 1 0 And I run :scroll-page -1 0 Then the page should not be scrolled. + + Scenario: :scroll-page with --bottom-navigate + When I run :scroll-perc 100 + And I run :scroll-page --bottom-navigate next 0 1 + Then data/hello.txt should be loaded + + Scenario: :scroll-page with --top-navigate + When I run :scroll-page --top-navigate prev 0 -1 + Then data/hello2.txt should be loaded