@@ -3,7 +3,7 @@ import {Component, Renderer, ViewChild} from '@angular/core';
33import { StyleModule } from './index' ;
44import { By } from '@angular/platform-browser' ;
55import { TAB } from '../keyboard/keycodes' ;
6- import { FocusOriginMonitor , FocusOrigin , CdkFocusClasses } from './focus-classes' ;
6+ import { FocusOriginMonitor , FocusOrigin , CdkFocusClasses , TOUCH_BUFFER_MS } from './focus-classes' ;
77
88describe ( 'FocusOriginMonitor' , ( ) => {
99 let fixture : ComponentFixture < PlainButton > ;
@@ -106,7 +106,7 @@ describe('FocusOriginMonitor', () => {
106106 expect ( buttonElement . classList . contains ( 'cdk-touch-focused' ) )
107107 . toBe ( true , 'button should have cdk-touch-focused class' ) ;
108108 expect ( changeHandler ) . toHaveBeenCalledWith ( 'touch' ) ;
109- } , 650 ) ;
109+ } , TOUCH_BUFFER_MS ) ;
110110 } ) ) ;
111111
112112 it ( 'should detect programmatic focus' , async ( ( ) => {
@@ -303,7 +303,7 @@ describe('cdkFocusClasses', () => {
303303 expect ( buttonElement . classList . contains ( 'cdk-touch-focused' ) )
304304 . toBe ( true , 'button should have cdk-touch-focused class' ) ;
305305 expect ( changeHandler ) . toHaveBeenCalledWith ( 'touch' ) ;
306- } , 650 ) ;
306+ } , TOUCH_BUFFER_MS ) ;
307307 } ) ) ;
308308
309309 it ( 'should detect programmatic focus' , async ( ( ) => {
0 commit comments