File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -110,9 +110,7 @@ describe('MatSelect', () => {
110
110
] ,
111
111
} ) . compileComponents ( ) ;
112
112
113
- inject ( [ OverlayContainer ] , ( oc : OverlayContainer ) => {
114
- overlayContainerElement = oc . getContainerElement ( ) ;
115
- } ) ( ) ;
113
+ overlayContainerElement = TestBed . inject ( OverlayContainer ) . getContainerElement ( ) ;
116
114
}
117
115
118
116
describe ( 'core' , ( ) => {
@@ -6002,7 +6000,7 @@ class SelectWithNgIfAndLabel {
6002
6000
` ,
6003
6001
} )
6004
6002
class MultiSelectWithLotsOfOptions {
6005
- items = new Array ( 1000 ) . fill ( 0 ) . map ( ( _ , i ) => i ) ;
6003
+ items = new Array ( 100 ) . fill ( 0 ) . map ( ( _ , i ) => i ) ;
6006
6004
value : number [ ] = [ ] ;
6007
6005
6008
6006
checkAll ( ) {
Original file line number Diff line number Diff line change @@ -108,9 +108,7 @@ describe('MDC-based MatSelect', () => {
108
108
] ,
109
109
} ) . compileComponents ( ) ;
110
110
111
- inject ( [ OverlayContainer ] , ( oc : OverlayContainer ) => {
112
- overlayContainerElement = oc . getContainerElement ( ) ;
113
- } ) ( ) ;
111
+ overlayContainerElement = TestBed . inject ( OverlayContainer ) . getContainerElement ( ) ;
114
112
}
115
113
116
114
describe ( 'core' , ( ) => {
@@ -5021,7 +5019,7 @@ class SelectWithNgIfAndLabel {
5021
5019
` ,
5022
5020
} )
5023
5021
class MultiSelectWithLotsOfOptions {
5024
- items = new Array ( 1000 ) . fill ( 0 ) . map ( ( _ , i ) => i ) ;
5022
+ items = new Array ( 100 ) . fill ( 0 ) . map ( ( _ , i ) => i ) ;
5025
5023
value : number [ ] = [ ] ;
5026
5024
5027
5025
checkAll ( ) {
You can’t perform that action at this time.
0 commit comments