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';
28
28
import { OverlayContainer , ScrollStrategy , Overlay } from '@angular/cdk/overlay' ;
29
29
import { ScrollDispatcher } from '@angular/cdk/scrolling' ;
30
30
import { 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' ;
32
36
import {
33
37
MAT_DIALOG_DATA ,
34
38
MatDialog ,
@@ -268,6 +272,7 @@ describe('MatDialog', () => {
268
272
269
273
const event = createKeyboardEvent ( 'keydown' , ESCAPE ) ;
270
274
Object . defineProperty ( event , 'altKey' , { get : ( ) => true } ) ;
275
+ dispatchEvent ( document . body , event ) ;
271
276
viewContainerFixture . detectChanges ( ) ;
272
277
flush ( ) ;
273
278
You can’t perform that action at this time.
0 commit comments