@@ -101,7 +101,7 @@ describe('MdAutocomplete', () => {
101101 expect ( fixture . componentInstance . trigger . panelOpen )
102102 . toBe ( false , `Expected panel state to start out closed.` ) ;
103103
104- dispatchFakeEvent ( input , 'focus ' ) ;
104+ dispatchFakeEvent ( input , 'focusin ' ) ;
105105 fixture . whenStable ( ) . then ( ( ) => {
106106 fixture . detectChanges ( ) ;
107107
@@ -147,7 +147,7 @@ describe('MdAutocomplete', () => {
147147 } ) ) ;
148148
149149 it ( 'should close the panel when input loses focus' , async ( ( ) => {
150- dispatchFakeEvent ( input , 'focus ' ) ;
150+ dispatchFakeEvent ( input , 'focusin ' ) ;
151151 fixture . detectChanges ( ) ;
152152
153153 fixture . whenStable ( ) . then ( ( ) => {
@@ -161,7 +161,7 @@ describe('MdAutocomplete', () => {
161161 } ) ) ;
162162
163163 it ( 'should close the panel when an option is clicked' , async ( ( ) => {
164- dispatchFakeEvent ( input , 'focus ' ) ;
164+ dispatchFakeEvent ( input , 'focusin ' ) ;
165165 fixture . detectChanges ( ) ;
166166
167167 fixture . whenStable ( ) . then ( ( ) => {
@@ -177,7 +177,7 @@ describe('MdAutocomplete', () => {
177177 } ) ) ;
178178
179179 it ( 'should close the panel when a newly created option is clicked' , async ( ( ) => {
180- dispatchFakeEvent ( input , 'focus ' ) ;
180+ dispatchFakeEvent ( input , 'focusin ' ) ;
181181 fixture . detectChanges ( ) ;
182182
183183 fixture . whenStable ( ) . then ( ( ) => {
@@ -222,7 +222,7 @@ describe('MdAutocomplete', () => {
222222 } ) ;
223223
224224 it ( 'should hide the panel when the options list is empty' , async ( ( ) => {
225- dispatchFakeEvent ( input , 'focus ' ) ;
225+ dispatchFakeEvent ( input , 'focusin ' ) ;
226226
227227 fixture . whenStable ( ) . then ( ( ) => {
228228 fixture . detectChanges ( ) ;
@@ -1127,7 +1127,7 @@ describe('MdAutocomplete', () => {
11271127 fixture . detectChanges ( ) ;
11281128
11291129 const input = fixture . debugElement . query ( By . css ( 'input' ) ) . nativeElement ;
1130- dispatchFakeEvent ( input , 'focus ' ) ;
1130+ dispatchFakeEvent ( input , 'focusin ' ) ;
11311131
11321132 fixture . whenStable ( ) . then ( ( ) => {
11331133 fixture . detectChanges ( ) ;
@@ -1226,7 +1226,7 @@ describe('MdAutocomplete', () => {
12261226 let fixture = TestBed . createComponent ( AutocompleteWithOnPushDelay ) ;
12271227
12281228 fixture . detectChanges ( ) ;
1229- dispatchFakeEvent ( fixture . debugElement . query ( By . css ( 'input' ) ) . nativeElement , 'focus ' ) ;
1229+ dispatchFakeEvent ( fixture . debugElement . query ( By . css ( 'input' ) ) . nativeElement , 'focusin ' ) ;
12301230 tick ( 1000 ) ;
12311231 fixture . detectChanges ( ) ;
12321232
0 commit comments