File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import {MatDialogContainer} from './dialog-container';
2828import { OverlayContainer , ScrollStrategy , Overlay } from '@angular/cdk/overlay' ;
2929import { ScrollDispatcher } from '@angular/cdk/scrolling' ;
3030import { A , ESCAPE } from '@angular/cdk/keycodes' ;
31- import { dispatchKeyboardEvent , createKeyboardEvent } from '@angular/cdk/testing/private' ;
31+ import { dispatchKeyboardEvent , createKeyboardEvent , dispatchEvent } from '@angular/cdk/testing/private' ;
3232import {
3333 MAT_DIALOG_DATA ,
3434 MatDialog ,
@@ -268,6 +268,7 @@ describe('MatDialog', () => {
268268
269269 const event = createKeyboardEvent ( 'keydown' , ESCAPE ) ;
270270 Object . defineProperty ( event , 'altKey' , { get : ( ) => true } ) ;
271+ dispatchEvent ( document . body , event ) ;
271272 viewContainerFixture . detectChanges ( ) ;
272273 flush ( ) ;
273274
You can’t perform that action at this time.
0 commit comments