bdd: Add tests for :scroll-page with --*-navigate.
This commit is contained in:
parent
7de206e350
commit
29a1620e81
@ -207,5 +207,8 @@
|
|||||||
198
|
198
|
||||||
199
|
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.
|
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.
|
||||||
|
</pre>
|
||||||
|
<a href="/data/hello.txt">next</a> link to test the --top-navigate argument for :scroll-page.
|
||||||
|
<a href="/data/hello2.txt">prev</a> link to test the --bottom-navigate argument for :scroll-page.
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -128,3 +128,12 @@ Feature: Scrolling
|
|||||||
When I run :scroll-page 1 0
|
When I run :scroll-page 1 0
|
||||||
And I run :scroll-page -1 0
|
And I run :scroll-page -1 0
|
||||||
Then the page should not be scrolled.
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user