File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,11 @@ 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 {
32+ dispatchKeyboardEvent ,
33+ createKeyboardEvent ,
34+ dispatchEvent
35+ } from '@angular/cdk/testing/private' ;
3236import {
3337 MAT_DIALOG_DATA ,
3438 MatDialog ,
@@ -268,6 +272,7 @@ describe('MatDialog', () => {
268272
269273 const event = createKeyboardEvent ( 'keydown' , ESCAPE ) ;
270274 Object . defineProperty ( event , 'altKey' , { get : ( ) => true } ) ;
275+ dispatchEvent ( document . body , event ) ;
271276 viewContainerFixture . detectChanges ( ) ;
272277 flush ( ) ;
273278
You can’t perform that action at this time.
0 commit comments