Make set_mark searching tests less flaky.
Replace all the html numbers with a few widely spaced divs to guarantee the search will move the viewport on almost and reasonable screen size.
This commit is contained in:
parent
a924144d9a
commit
2b68aaa311
@ -8,109 +8,9 @@
|
||||
<h1 id="top">Top</h1>
|
||||
<a href="#top">Top</a>
|
||||
<a href="#bottom">Bottom</a>
|
||||
<pre>
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
30
|
||||
31
|
||||
32
|
||||
33
|
||||
34
|
||||
35
|
||||
36
|
||||
37
|
||||
38
|
||||
39
|
||||
40
|
||||
41
|
||||
42
|
||||
43
|
||||
44
|
||||
45
|
||||
46
|
||||
47
|
||||
48
|
||||
49
|
||||
50
|
||||
51
|
||||
52
|
||||
53
|
||||
54
|
||||
55
|
||||
56
|
||||
57
|
||||
58
|
||||
59
|
||||
60
|
||||
61
|
||||
62
|
||||
63
|
||||
64
|
||||
65
|
||||
66
|
||||
67
|
||||
68
|
||||
69
|
||||
70
|
||||
71
|
||||
72
|
||||
73
|
||||
74
|
||||
75
|
||||
76
|
||||
77
|
||||
78
|
||||
79
|
||||
80
|
||||
81
|
||||
82
|
||||
83
|
||||
84
|
||||
85
|
||||
86
|
||||
87
|
||||
88
|
||||
89
|
||||
90
|
||||
91
|
||||
92
|
||||
93
|
||||
94
|
||||
95
|
||||
96
|
||||
97
|
||||
98
|
||||
99
|
||||
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>
|
||||
<div style="height: 3000px; width: 3000px;">Holy Grail</div>
|
||||
<div style="height: 3000px; width: 3000px;">Waldo</div>
|
||||
<div style="height: 3000px; width: 3000px;">Holy Grail</div>
|
||||
<h1 id="bottom">Bottom</h1>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -71,16 +71,13 @@ Feature: Setting positional marks
|
||||
Then the page should be scrolled to 0 0
|
||||
|
||||
Scenario: Jumping back after searching
|
||||
When I run :hint links normal
|
||||
And I run :search 48
|
||||
When I run :scroll-px 20 15
|
||||
And I run :search Waldo
|
||||
And I run :jump-mark "'"
|
||||
Then the page should be scrolled to 0 0
|
||||
Then the page should be scrolled to 20 15
|
||||
|
||||
Scenario: Jumping back after search-next
|
||||
When I run :hint links normal
|
||||
And I run :search 9
|
||||
And I run :search-next
|
||||
And I run :search-next
|
||||
When I run :search Grail
|
||||
And I run :search-next
|
||||
And I run :jump-mark "'"
|
||||
Then the page should be scrolled to 0 0
|
||||
|
Loading…
Reference in New Issue
Block a user