@@ -101,7 +101,7 @@ describe('MdAutocomplete', () => {
101
101
expect ( fixture . componentInstance . trigger . panelOpen )
102
102
. toBe ( false , `Expected panel state to start out closed.` ) ;
103
103
104
- dispatchFakeEvent ( input , 'focus ' ) ;
104
+ dispatchFakeEvent ( input , 'focusin ' ) ;
105
105
fixture . whenStable ( ) . then ( ( ) => {
106
106
fixture . detectChanges ( ) ;
107
107
@@ -147,7 +147,7 @@ describe('MdAutocomplete', () => {
147
147
} ) ) ;
148
148
149
149
it ( 'should close the panel when input loses focus' , async ( ( ) => {
150
- dispatchFakeEvent ( input , 'focus ' ) ;
150
+ dispatchFakeEvent ( input , 'focusin ' ) ;
151
151
fixture . detectChanges ( ) ;
152
152
153
153
fixture . whenStable ( ) . then ( ( ) => {
@@ -161,7 +161,7 @@ describe('MdAutocomplete', () => {
161
161
} ) ) ;
162
162
163
163
it ( 'should close the panel when an option is clicked' , async ( ( ) => {
164
- dispatchFakeEvent ( input , 'focus ' ) ;
164
+ dispatchFakeEvent ( input , 'focusin ' ) ;
165
165
fixture . detectChanges ( ) ;
166
166
167
167
fixture . whenStable ( ) . then ( ( ) => {
@@ -177,7 +177,7 @@ describe('MdAutocomplete', () => {
177
177
} ) ) ;
178
178
179
179
it ( 'should close the panel when a newly created option is clicked' , async ( ( ) => {
180
- dispatchFakeEvent ( input , 'focus ' ) ;
180
+ dispatchFakeEvent ( input , 'focusin ' ) ;
181
181
fixture . detectChanges ( ) ;
182
182
183
183
fixture . whenStable ( ) . then ( ( ) => {
@@ -222,7 +222,7 @@ describe('MdAutocomplete', () => {
222
222
} ) ;
223
223
224
224
it ( 'should hide the panel when the options list is empty' , async ( ( ) => {
225
- dispatchFakeEvent ( input , 'focus ' ) ;
225
+ dispatchFakeEvent ( input , 'focusin ' ) ;
226
226
227
227
fixture . whenStable ( ) . then ( ( ) => {
228
228
fixture . detectChanges ( ) ;
@@ -1127,7 +1127,7 @@ describe('MdAutocomplete', () => {
1127
1127
fixture . detectChanges ( ) ;
1128
1128
1129
1129
const input = fixture . debugElement . query ( By . css ( 'input' ) ) . nativeElement ;
1130
- dispatchFakeEvent ( input , 'focus ' ) ;
1130
+ dispatchFakeEvent ( input , 'focusin ' ) ;
1131
1131
1132
1132
fixture . whenStable ( ) . then ( ( ) => {
1133
1133
fixture . detectChanges ( ) ;
@@ -1226,7 +1226,7 @@ describe('MdAutocomplete', () => {
1226
1226
let fixture = TestBed . createComponent ( AutocompleteWithOnPushDelay ) ;
1227
1227
1228
1228
fixture . detectChanges ( ) ;
1229
- dispatchFakeEvent ( fixture . debugElement . query ( By . css ( 'input' ) ) . nativeElement , 'focus ' ) ;
1229
+ dispatchFakeEvent ( fixture . debugElement . query ( By . css ( 'input' ) ) . nativeElement , 'focusin ' ) ;
1230
1230
tick ( 1000 ) ;
1231
1231
fixture . detectChanges ( ) ;
1232
1232
0 commit comments