Commit 00c39f0 1 parent dcb7f7e commit 00c39f0 Copy full SHA for 00c39f0
File tree 1 file changed +2
-10
lines changed
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,8 @@ module.exports = {
33
33
null ,
34
34
'restore scroll position on back'
35
35
)
36
-
37
- // with manual scroll restoration
38
- // https://developers.google.com/web/updates/2015/09/history-api-scroll-restoration
39
36
. execute ( function ( ) {
40
37
window . scrollTo ( 0 , 100 )
41
- history . scrollRestoration = 'manual'
42
38
} )
43
39
. click ( 'li:nth-child(2) a' )
44
40
. waitForElementPresent ( '.view.foo' , TIMEOUT )
@@ -107,19 +103,15 @@ module.exports = {
107
103
'scroll to anchor'
108
104
)
109
105
110
- . execute ( function ( ) {
111
- document . querySelector ( 'li:nth-child(5) a' ) . click ( )
112
- } )
106
+ . click ( 'li:nth-child(5) a' )
113
107
. assert . evaluate (
114
108
function ( ) {
115
109
return document . getElementById ( 'anchor2' ) . getBoundingClientRect ( ) . top < 101
116
110
} ,
117
111
null ,
118
112
'scroll to anchor with offset'
119
113
)
120
- . execute ( function ( ) {
121
- document . querySelector ( 'li:nth-child(6) a' ) . click ( )
122
- } )
114
+ . click ( 'li:nth-child(6) a' )
123
115
. assert . evaluate (
124
116
function ( ) {
125
117
return document . getElementById ( '1number' ) . getBoundingClientRect ( ) . top < 1
You can’t perform that action at this time.
0 commit comments