|
1 |
| -import {OverlayModule} from '@angular/cdk/overlay'; |
2 |
| -import {CommonModule} from '@angular/common'; |
3 |
| -import {NgModule} from '@angular/core'; |
4 | 1 | import {MatFormFieldModule} from '@angular/material-experimental/mdc-form-field';
|
5 | 2 | import {MatInputModule} from '@angular/material-experimental/mdc-input';
|
6 |
| -import {MatAutocompleteModule} from '@angular/material/autocomplete'; |
7 |
| -import {MatCommonModule, MatOptionModule} from '@angular/material/core'; |
8 |
| -import {MatInputHarness} from '@angular/material/input/testing'; |
9 |
| -import { |
10 |
| - MAT_SELECT_SCROLL_STRATEGY_PROVIDER, |
11 |
| - MatSelect, |
12 |
| - MatSelectTrigger |
13 |
| -} from '@angular/material/select'; |
14 |
| -import {MatSelectHarness} from '@angular/material/select/testing'; |
| 3 | +import {MatAutocompleteModule} from '@angular/material-experimental/mdc-autocomplete'; |
| 4 | +import {MatInputHarness} from '@angular/material-experimental/mdc-input/testing'; |
| 5 | +import {MatSelectModule} from '@angular/material-experimental/mdc-select'; |
| 6 | +import {MatSelectHarness} from '@angular/material-experimental/mdc-select/testing'; |
15 | 7 | import {runHarnessTests} from '@angular/material/form-field/testing/shared.spec';
|
16 | 8 | import {MatFormFieldHarness} from './form-field-harness';
|
17 | 9 |
|
18 |
| -// TODO: remove this once there is a `MatSelect` module which does not come |
19 |
| -// with the form-field module provided. This is a copy of the `MatSelect` module |
20 |
| -// that does not provide any form-field module. |
21 |
| -@NgModule({ |
22 |
| - imports: [CommonModule, OverlayModule, MatOptionModule, MatCommonModule], |
23 |
| - exports: [MatSelect, MatSelectTrigger, MatOptionModule, MatCommonModule], |
24 |
| - declarations: [MatSelect, MatSelectTrigger], |
25 |
| - providers: [MAT_SELECT_SCROLL_STRATEGY_PROVIDER] |
26 |
| -}) |
27 |
| -export class SelectWithoutFormFieldModule { |
28 |
| -} |
29 |
| - |
30 | 10 | describe('MDC-based MatFormFieldHarness', () => {
|
31 | 11 | runHarnessTests(
|
32 |
| - [MatFormFieldModule, MatAutocompleteModule, MatInputModule, SelectWithoutFormFieldModule], { |
| 12 | + [MatFormFieldModule, MatAutocompleteModule, MatInputModule, MatSelectModule], { |
33 | 13 | formFieldHarness: MatFormFieldHarness as any,
|
34 | 14 | inputHarness: MatInputHarness,
|
35 | 15 | selectHarness: MatSelectHarness,
|
|
0 commit comments