@@ -10,6 +10,7 @@ import {
10
10
UP_ARROW ,
11
11
} from '@angular/cdk/keycodes' ;
12
12
import { Overlay } from '@angular/cdk/overlay' ;
13
+ import { _supportsShadowDom } from '@angular/cdk/platform' ;
13
14
import { ScrollDispatcher } from '@angular/cdk/scrolling' ;
14
15
import {
15
16
createKeyboardEvent ,
@@ -21,40 +22,39 @@ import {
21
22
} from '@angular/cdk/testing/private' ;
22
23
import {
23
24
Component ,
25
+ Directive ,
26
+ Provider ,
24
27
Type ,
25
28
ViewChild ,
26
- Provider ,
27
- Directive ,
28
29
ViewEncapsulation ,
29
30
provideZoneChangeDetection ,
30
31
} from '@angular/core' ;
31
- import { ComponentFixture , fakeAsync , flush , inject , TestBed , tick } from '@angular/core/testing' ;
32
+ import { ComponentFixture , TestBed , fakeAsync , flush , inject , tick } from '@angular/core/testing' ;
32
33
import {
33
34
FormControl ,
34
35
FormsModule ,
36
+ NG_VALIDATORS ,
35
37
NgModel ,
36
38
ReactiveFormsModule ,
37
39
Validator ,
38
- NG_VALIDATORS ,
39
40
} from '@angular/forms' ;
40
41
import { MAT_DATE_LOCALE , MatNativeDateModule , NativeDateModule } from '@angular/material/core' ;
41
42
import { MatFormField , MatFormFieldModule } from '@angular/material/form-field' ;
42
- import { DEC , JAN , JUL , JUN , SEP } from '../testing ' ;
43
+ import { MatInputModule } from '@angular/material/input ' ;
43
44
import { By } from '@angular/platform-browser' ;
44
- import { _supportsShadowDom } from '@angular/cdk/platform' ;
45
45
import { NoopAnimationsModule } from '@angular/platform-browser/animations' ;
46
46
import { Subject } from 'rxjs' ;
47
- import { MatInputModule } from '@angular/material/input ' ;
47
+ import { DEC , JAN , JUL , JUN , SEP } from '../testing ' ;
48
48
import { MatDatepicker } from './datepicker' ;
49
+ import { DatepickerDropdownPositionX , DatepickerDropdownPositionY } from './datepicker-base' ;
49
50
import { MatDatepickerInput } from './datepicker-input' ;
50
51
import { MatDatepickerToggle } from './datepicker-toggle' ;
51
52
import {
52
53
MAT_DATEPICKER_SCROLL_STRATEGY ,
54
+ MatDateSelectionModel ,
53
55
MatDatepickerIntl ,
54
56
MatDatepickerModule ,
55
- MatDateSelectionModel ,
56
57
} from './index' ;
57
- import { DatepickerDropdownPositionX , DatepickerDropdownPositionY } from './datepicker-base' ;
58
58
59
59
describe ( 'MatDatepicker' , ( ) => {
60
60
const SUPPORTS_INTL = typeof Intl != 'undefined' ;
@@ -511,6 +511,9 @@ describe('MatDatepicker', () => {
511
511
512
512
it ( 'should reset the datepicker when it is closed externally' , fakeAsync ( ( ) => {
513
513
TestBed . resetTestingModule ( ) ;
514
+ TestBed . configureTestingModule ( {
515
+ providers : [ provideZoneChangeDetection ( ) ] ,
516
+ } ) ;
514
517
515
518
const scrolledSubject = new Subject ( ) ;
516
519
@@ -1312,6 +1315,9 @@ describe('MatDatepicker', () => {
1312
1315
1313
1316
fixture . destroy ( ) ;
1314
1317
TestBed . resetTestingModule ( ) ;
1318
+ TestBed . configureTestingModule ( {
1319
+ providers : [ provideZoneChangeDetection ( ) ] ,
1320
+ } ) ;
1315
1321
fixture = createComponent ( DatepickerWithToggleInShadowDom , [ MatNativeDateModule ] ) ;
1316
1322
fixture . detectChanges ( ) ;
1317
1323
testComponent = fixture . componentInstance ;
0 commit comments