@@ -132,8 +132,8 @@ describe('List.scrollWidth', () => {
132
132
width : '20px' ,
133
133
} ) ;
134
134
135
- expect ( onVirtualScroll ) . toHaveBeenCalledWith ( { x : 900 , y : 0 , maxScrollWidth : 900 , maxScrollHeight : 1900 } ) ;
136
- expect ( listRef . current . getScrollInfo ( ) ) . toEqual ( { x : 900 , y : 0 , maxScrollWidth : 900 , maxScrollHeight : 1900 } ) ;
135
+ expect ( onVirtualScroll ) . toHaveBeenCalledWith ( { x : 900 , y : 0 } ) ;
136
+ expect ( listRef . current . getScrollInfo ( ) ) . toEqual ( { x : 900 , y : 0 } ) ;
137
137
} ) ;
138
138
139
139
it ( 'wheel' , async ( ) => {
@@ -151,7 +151,7 @@ describe('List.scrollWidth', () => {
151
151
fireEvent . wheel ( container . querySelector ( '.rc-virtual-list-holder' ) ! , {
152
152
deltaX : 123 ,
153
153
} ) ;
154
- expect ( onVirtualScroll ) . toHaveBeenCalledWith ( { x : 123 , y : 0 , maxScrollWidth : 900 , maxScrollHeight : 1900 } ) ;
154
+ expect ( onVirtualScroll ) . toHaveBeenCalledWith ( { x : 123 , y : 0 } ) ;
155
155
} ) ;
156
156
157
157
it ( 'trigger event when less count' , async ( ) => {
@@ -169,7 +169,7 @@ describe('List.scrollWidth', () => {
169
169
fireEvent . wheel ( container . querySelector ( '.rc-virtual-list-holder' ) ! , {
170
170
deltaX : 123 ,
171
171
} ) ;
172
- expect ( onVirtualScroll ) . toHaveBeenCalledWith ( { x : 123 , y : 0 , maxScrollWidth : 900 , maxScrollHeight : 0 } ) ;
172
+ expect ( onVirtualScroll ) . toHaveBeenCalledWith ( { x : 123 , y : 0 } ) ;
173
173
} ) ;
174
174
175
175
it ( 'shift wheel' , async ( ) => {
@@ -188,7 +188,7 @@ describe('List.scrollWidth', () => {
188
188
deltaY : 123 ,
189
189
shiftKey : true ,
190
190
} ) ;
191
- expect ( onVirtualScroll ) . toHaveBeenCalledWith ( { x : 123 , y : 0 , maxScrollWidth : 900 , maxScrollHeight : 1900 } ) ;
191
+ expect ( onVirtualScroll ) . toHaveBeenCalledWith ( { x : 123 , y : 0 } ) ;
192
192
} ) ;
193
193
} ) ;
194
194
@@ -204,10 +204,10 @@ describe('List.scrollWidth', () => {
204
204
} ) ;
205
205
206
206
listRef . current . scrollTo ( { left : 135 } ) ;
207
- expect ( listRef . current . getScrollInfo ( ) ) . toEqual ( { x : 135 , y : 0 , maxScrollWidth : 900 , maxScrollHeight : 1900 } ) ;
207
+ expect ( listRef . current . getScrollInfo ( ) ) . toEqual ( { x : 135 , y : 0 } ) ;
208
208
209
209
listRef . current . scrollTo ( { left : - 99 } ) ;
210
- expect ( listRef . current . getScrollInfo ( ) ) . toEqual ( { x : 0 , y : 0 , maxScrollWidth : 900 , maxScrollHeight : 1900 } ) ;
210
+ expect ( listRef . current . getScrollInfo ( ) ) . toEqual ( { x : 0 , y : 0 } ) ;
211
211
} ) ;
212
212
213
213
it ( 'support extraRender' , async ( ) => {
0 commit comments