bdd: Use separate files for scroll navigate tests.

hello.txt was already cached from some other tests, so let's make sure a fresh
file gets loaded.
This commit is contained in:
Florian Bruhin 2015-11-17 06:40:23 +01:00
parent 7fe9be432a
commit 779df4c08e
3 changed files with 5 additions and 4 deletions

View File

@ -0,0 +1 @@
Hello World 3!

View File

@ -208,7 +208,7 @@
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.
</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.
<a href="/data/hello2.txt">next</a> link to test the --top-navigate argument for :scroll-page.
<a href="/data/hello3.txt">prev</a> link to test the --bottom-navigate argument for :scroll-page.
</body>
</html>

View File

@ -214,11 +214,11 @@ Feature: Scrolling
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
Then data/hello2.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
Then data/hello3.txt should be loaded
Scenario: :scroll-page with a very big value
When I run :scroll-page 99999999999 99999999999