@@ -10,6 +10,7 @@ import {
1010 UP_ARROW ,
1111} from '@angular/cdk/keycodes' ;
1212import { Overlay } from '@angular/cdk/overlay' ;
13+ import { _supportsShadowDom } from '@angular/cdk/platform' ;
1314import { ScrollDispatcher } from '@angular/cdk/scrolling' ;
1415import {
1516 createKeyboardEvent ,
@@ -21,40 +22,39 @@ import {
2122} from '@angular/cdk/testing/private' ;
2223import {
2324 Component ,
25+ Directive ,
26+ Provider ,
2427 Type ,
2528 ViewChild ,
26- Provider ,
27- Directive ,
2829 ViewEncapsulation ,
2930 provideZoneChangeDetection ,
3031} 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' ;
3233import {
3334 FormControl ,
3435 FormsModule ,
36+ NG_VALIDATORS ,
3537 NgModel ,
3638 ReactiveFormsModule ,
3739 Validator ,
38- NG_VALIDATORS ,
3940} from '@angular/forms' ;
4041import { MAT_DATE_LOCALE , MatNativeDateModule , NativeDateModule } from '@angular/material/core' ;
4142import { MatFormField , MatFormFieldModule } from '@angular/material/form-field' ;
42- import { DEC , JAN , JUL , JUN , SEP } from '../testing ' ;
43+ import { MatInputModule } from '@angular/material/input ' ;
4344import { By } from '@angular/platform-browser' ;
44- import { _supportsShadowDom } from '@angular/cdk/platform' ;
4545import { NoopAnimationsModule } from '@angular/platform-browser/animations' ;
4646import { Subject } from 'rxjs' ;
47- import { MatInputModule } from '@angular/material/input ' ;
47+ import { DEC , JAN , JUL , JUN , SEP } from '../testing ' ;
4848import { MatDatepicker } from './datepicker' ;
49+ import { DatepickerDropdownPositionX , DatepickerDropdownPositionY } from './datepicker-base' ;
4950import { MatDatepickerInput } from './datepicker-input' ;
5051import { MatDatepickerToggle } from './datepicker-toggle' ;
5152import {
5253 MAT_DATEPICKER_SCROLL_STRATEGY ,
54+ MatDateSelectionModel ,
5355 MatDatepickerIntl ,
5456 MatDatepickerModule ,
55- MatDateSelectionModel ,
5657} from './index' ;
57- import { DatepickerDropdownPositionX , DatepickerDropdownPositionY } from './datepicker-base' ;
5858
5959describe ( 'MatDatepicker' , ( ) => {
6060 const SUPPORTS_INTL = typeof Intl != 'undefined' ;
@@ -511,6 +511,9 @@ describe('MatDatepicker', () => {
511511
512512 it ( 'should reset the datepicker when it is closed externally' , fakeAsync ( ( ) => {
513513 TestBed . resetTestingModule ( ) ;
514+ TestBed . configureTestingModule ( {
515+ providers : [ provideZoneChangeDetection ( ) ] ,
516+ } ) ;
514517
515518 const scrolledSubject = new Subject ( ) ;
516519
@@ -1312,6 +1315,9 @@ describe('MatDatepicker', () => {
13121315
13131316 fixture . destroy ( ) ;
13141317 TestBed . resetTestingModule ( ) ;
1318+ TestBed . configureTestingModule ( {
1319+ providers : [ provideZoneChangeDetection ( ) ] ,
1320+ } ) ;
13151321 fixture = createComponent ( DatepickerWithToggleInShadowDom , [ MatNativeDateModule ] ) ;
13161322 fixture . detectChanges ( ) ;
13171323 testComponent = fixture . componentInstance ;
0 commit comments