@@ -274,5 +274,33 @@ describe('SpatialNavigationVirtualizedGrid', () => {
274274 testRemoteControlManager . handleDown ( ) ;
275275 expectButtonToHaveFocus ( component , 'button 19' ) ;
276276 expectListToHaveScroll ( listElement , - 400 ) ;
277+
278+ testRemoteControlManager . handleUp ( ) ;
279+ expectButtonToHaveFocus ( component , 'button 16' ) ;
280+ expectListToHaveScroll ( listElement , - 300 ) ;
281+
282+ testRemoteControlManager . handleUp ( ) ;
283+ expectButtonToHaveFocus ( component , 'button 13' ) ;
284+ expectListToHaveScroll ( listElement , - 300 ) ;
285+
286+ testRemoteControlManager . handleUp ( ) ;
287+ expectButtonToHaveFocus ( component , 'button 10' ) ;
288+ expectListToHaveScroll ( listElement , - 300 ) ;
289+
290+ testRemoteControlManager . handleUp ( ) ;
291+ expectButtonToHaveFocus ( component , 'button 7' ) ;
292+ expectListToHaveScroll ( listElement , 0 ) ;
293+
294+ testRemoteControlManager . handleUp ( ) ;
295+ expectButtonToHaveFocus ( component , 'button 4' ) ;
296+ expectListToHaveScroll ( listElement , 0 ) ;
297+
298+ testRemoteControlManager . handleUp ( ) ;
299+ expectButtonToHaveFocus ( component , 'button 1' ) ;
300+ expectListToHaveScroll ( listElement , 0 ) ;
301+
302+ testRemoteControlManager . handleRight ( ) ;
303+ expectButtonToHaveFocus ( component , 'button 2' ) ;
304+ expectListToHaveScroll ( listElement , 0 ) ;
277305 } ) ;
278306} ) ;
0 commit comments