@@ -1960,9 +1960,9 @@ describe('FragmentRefs', () => {
1960
1960
} ) ;
1961
1961
1962
1962
expect ( ( ) => {
1963
- fragmentRef . current . experimental_scrollIntoView ( { block : 'start' } ) ;
1963
+ fragmentRef . current . scrollIntoView ( { block : 'start' } ) ;
1964
1964
} ) . toThrowError (
1965
- 'FragmentInstance.experimental_scrollIntoView () does not support ' +
1965
+ 'FragmentInstance.scrollIntoView () does not support ' +
1966
1966
'scrollIntoViewOptions. Use the alignToTop boolean instead.' ,
1967
1967
) ;
1968
1968
} ) ;
@@ -1996,11 +1996,11 @@ describe('FragmentRefs', () => {
1996
1996
} ) ;
1997
1997
1998
1998
// Default call
1999
- fragmentRef . current . experimental_scrollIntoView ( ) ;
1999
+ fragmentRef . current . scrollIntoView ( ) ;
2000
2000
expectLast ( logs , 'childA' ) ;
2001
2001
logs = [ ] ;
2002
2002
// alignToTop=true
2003
- fragmentRef . current . experimental_scrollIntoView ( true ) ;
2003
+ fragmentRef . current . scrollIntoView ( true ) ;
2004
2004
expectLast ( logs , 'childA' ) ;
2005
2005
} ) ;
2006
2006
@@ -2027,7 +2027,7 @@ describe('FragmentRefs', () => {
2027
2027
logs . push ( 'childB' ) ;
2028
2028
} ) ;
2029
2029
2030
- fragmentRef . current . experimental_scrollIntoView ( false ) ;
2030
+ fragmentRef . current . scrollIntoView ( false ) ;
2031
2031
expectLast ( logs , 'childB' ) ;
2032
2032
} ) ;
2033
2033
@@ -2068,7 +2068,7 @@ describe('FragmentRefs', () => {
2068
2068
} ) ;
2069
2069
2070
2070
// Default call
2071
- fragmentRef . current . experimental_scrollIntoView ( ) ;
2071
+ fragmentRef . current . scrollIntoView ( ) ;
2072
2072
expectLast ( logs , 'childA' ) ;
2073
2073
} ) ;
2074
2074
@@ -2157,7 +2157,7 @@ describe('FragmentRefs', () => {
2157
2157
} ) ;
2158
2158
2159
2159
// Default call
2160
- fragmentRef . current . experimental_scrollIntoView ( ) ;
2160
+ fragmentRef . current . scrollIntoView ( ) ;
2161
2161
expectLast ( logs , 'header' ) ;
2162
2162
2163
2163
childARef . current . scrollIntoView . mockClear ( ) ;
@@ -2167,7 +2167,7 @@ describe('FragmentRefs', () => {
2167
2167
logs = [ ] ;
2168
2168
2169
2169
// // alignToTop=false
2170
- fragmentRef . current . experimental_scrollIntoView ( false ) ;
2170
+ fragmentRef . current . scrollIntoView ( false ) ;
2171
2171
expectLast ( logs , 'C' ) ;
2172
2172
} ) ;
2173
2173
} ) ;
@@ -2195,14 +2195,14 @@ describe('FragmentRefs', () => {
2195
2195
siblingBRef . current . scrollIntoView = jest . fn ( ) ;
2196
2196
2197
2197
// Default call
2198
- fragmentRef . current . experimental_scrollIntoView ( ) ;
2198
+ fragmentRef . current . scrollIntoView ( ) ;
2199
2199
expect ( siblingARef . current . scrollIntoView ) . toHaveBeenCalledTimes ( 0 ) ;
2200
2200
expect ( siblingBRef . current . scrollIntoView ) . toHaveBeenCalledTimes ( 1 ) ;
2201
2201
2202
2202
siblingBRef . current . scrollIntoView . mockClear ( ) ;
2203
2203
2204
2204
// alignToTop=true
2205
- fragmentRef . current . experimental_scrollIntoView ( true ) ;
2205
+ fragmentRef . current . scrollIntoView ( true ) ;
2206
2206
expect ( siblingARef . current . scrollIntoView ) . toHaveBeenCalledTimes ( 0 ) ;
2207
2207
expect ( siblingBRef . current . scrollIntoView ) . toHaveBeenCalledTimes ( 1 ) ;
2208
2208
} ) ;
@@ -2239,7 +2239,7 @@ describe('FragmentRefs', () => {
2239
2239
siblingBRef . current . scrollIntoView = jest . fn ( ) ;
2240
2240
2241
2241
// alignToTop=false
2242
- fragmentRef . current . experimental_scrollIntoView ( false ) ;
2242
+ fragmentRef . current . scrollIntoView ( false ) ;
2243
2243
expect ( siblingARef . current . scrollIntoView ) . toHaveBeenCalledTimes ( 1 ) ;
2244
2244
expect ( siblingBRef . current . scrollIntoView ) . toHaveBeenCalledTimes ( 0 ) ;
2245
2245
} ) ;
@@ -2260,7 +2260,7 @@ describe('FragmentRefs', () => {
2260
2260
} ) ;
2261
2261
2262
2262
parentRef . current . scrollIntoView = jest . fn ( ) ;
2263
- fragmentRef . current . experimental_scrollIntoView ( ) ;
2263
+ fragmentRef . current . scrollIntoView ( ) ;
2264
2264
expect ( parentRef . current . scrollIntoView ) . toHaveBeenCalledTimes ( 1 ) ;
2265
2265
} ) ;
2266
2266
} ) ;
0 commit comments