@@ -44,7 +44,8 @@ export class MainControllerTests extends TestModule {
4444 onSignInInvoked = { this . mockMainControllerProps . onSignInInvoked }
4545 onSignOutInvoked = { this . mockMainControllerProps . onSignOutInvoked }
4646 updateFrameHeight = { this . mockMainControllerProps . updateFrameHeight }
47- onStartClip = { this . mockMainControllerProps . onStartClip } /> ;
47+ onStartClip = { this . mockMainControllerProps . onStartClip }
48+ clearKeepAlive = { this . mockMainControllerProps . clearKeepAlive } /> ;
4849 }
4950
5051 protected tests ( ) {
@@ -161,12 +162,12 @@ export class MainControllerTests extends TestModule {
161162
162163 // Focus on cancel button and tab - should move to close button
163164 cancelButton . focus ( ) ;
164- let tabEvent = new KeyboardEvent ( "keydown" , { keyCode : Constants . KeyCodes . tab , bubbles : true } ) ;
165+ let tabEvent = new KeyboardEvent ( "keydown" , { keyCode : Constants . KeyCodes . tab , bubbles : true } as any ) ;
165166 document . dispatchEvent ( tabEvent ) ;
166167 strictEqual ( document . activeElement , closeButton , "Tab from cancel button should focus close button" ) ;
167168
168169 // Tab again - should wrap to cancel button
169- tabEvent = new KeyboardEvent ( "keydown" , { keyCode : Constants . KeyCodes . tab , bubbles : true } ) ;
170+ tabEvent = new KeyboardEvent ( "keydown" , { keyCode : Constants . KeyCodes . tab , bubbles : true } as any ) ;
170171 document . dispatchEvent ( tabEvent ) ;
171172 strictEqual ( document . activeElement , cancelButton , "Tab from close button should wrap to cancel button" ) ;
172173 } ) ;
@@ -183,12 +184,12 @@ export class MainControllerTests extends TestModule {
183184
184185 // Focus on launch button and tab - should move to close button
185186 launchButton . focus ( ) ;
186- let tabEvent = new KeyboardEvent ( "keydown" , { keyCode : Constants . KeyCodes . tab , bubbles : true } ) ;
187+ let tabEvent = new KeyboardEvent ( "keydown" , { keyCode : Constants . KeyCodes . tab , bubbles : true } as any ) ;
187188 document . dispatchEvent ( tabEvent ) ;
188189 strictEqual ( document . activeElement , closeButton , "Tab from launch button should focus close button" ) ;
189190
190191 // Tab again - should wrap to launch button
191- tabEvent = new KeyboardEvent ( "keydown" , { keyCode : Constants . KeyCodes . tab , bubbles : true } ) ;
192+ tabEvent = new KeyboardEvent ( "keydown" , { keyCode : Constants . KeyCodes . tab , bubbles : true } as any ) ;
192193 document . dispatchEvent ( tabEvent ) ;
193194 strictEqual ( document . activeElement , launchButton , "Tab from close button should wrap to launch button" ) ;
194195 } ) ;
0 commit comments