@@ -29,7 +29,7 @@ describe('Combobox', () => {
29
29
let comboboxElement : HTMLElement ;
30
30
31
31
let dialog : DebugElement ;
32
- let dialogInstance : DialogContent < unknown > ;
32
+ let dialogInstance : FakeDialogContent < unknown > ;
33
33
let dialogElement : HTMLElement ;
34
34
35
35
let applyButton : DebugElement ;
@@ -38,7 +38,7 @@ describe('Combobox', () => {
38
38
beforeEach ( async ( ( ) => {
39
39
TestBed . configureTestingModule ( {
40
40
imports : [ CdkComboboxModule ] ,
41
- declarations : [ ComboboxToggle , DialogContent ] ,
41
+ declarations : [ ComboboxToggle , FakeDialogContent ] ,
42
42
} ) . compileComponents ( ) ;
43
43
} ) ) ;
44
44
@@ -73,8 +73,8 @@ describe('Combobox', () => {
73
73
dispatchMouseEvent ( comboboxElement , 'click' ) ;
74
74
fixture . detectChanges ( ) ;
75
75
76
- dialog = fixture . debugElement . query ( By . directive ( DialogContent ) ) ;
77
- dialogInstance = dialog . injector . get < DialogContent < unknown > > ( DialogContent ) ;
76
+ dialog = fixture . debugElement . query ( By . directive ( FakeDialogContent ) ) ;
77
+ dialogInstance = dialog . injector . get < FakeDialogContent < unknown > > ( FakeDialogContent ) ;
78
78
79
79
expect ( comboboxElement . getAttribute ( 'aria-owns' ) ) . toBe ( dialogInstance . dialogId ) ;
80
80
expect ( comboboxElement . getAttribute ( 'aria-haspopup' ) ) . toBe ( 'dialog' ) ;
@@ -106,7 +106,7 @@ describe('Combobox', () => {
106
106
107
107
expect ( comboboxInstance . isOpen ( ) ) . toBeTrue ( ) ;
108
108
109
- dialog = fixture . debugElement . query ( By . directive ( DialogContent ) ) ;
109
+ dialog = fixture . debugElement . query ( By . directive ( FakeDialogContent ) ) ;
110
110
dialogElement = dialog . nativeElement ;
111
111
112
112
expect ( document . activeElement ) . toBe ( dialogElement ) ;
@@ -191,7 +191,7 @@ describe('Combobox', () => {
191
191
beforeEach ( async ( ( ) => {
192
192
TestBed . configureTestingModule ( {
193
193
imports : [ CdkComboboxModule ] ,
194
- declarations : [ ComboboxToggle , DialogContent ] ,
194
+ declarations : [ ComboboxToggle , FakeDialogContent ] ,
195
195
} ) . compileComponents ( ) ;
196
196
} ) ) ;
197
197
@@ -262,7 +262,7 @@ describe('Combobox', () => {
262
262
beforeEach ( async ( ( ) => {
263
263
TestBed . configureTestingModule ( {
264
264
imports : [ CdkComboboxModule ] ,
265
- declarations : [ ComboboxToggle , DialogContent ] ,
265
+ declarations : [ ComboboxToggle , FakeDialogContent ] ,
266
266
} ) . compileComponents ( ) ;
267
267
} ) ) ;
268
268
@@ -405,7 +405,7 @@ let id = 0;
405
405
'tabIndex' : '-1'
406
406
}
407
407
} )
408
- export class DialogContent < V > implements OnInit {
408
+ export class FakeDialogContent < V > implements OnInit {
409
409
410
410
dialogId = `dialog-${ id ++ } ` ;
411
411
role = 'dialog' ;
0 commit comments