@@ -3,7 +3,7 @@ import {Component, Renderer, ViewChild} from '@angular/core';
3
3
import { StyleModule } from './index' ;
4
4
import { By } from '@angular/platform-browser' ;
5
5
import { TAB } from '../keyboard/keycodes' ;
6
- import { FocusOriginMonitor , FocusOrigin , CdkFocusClasses } from './focus-classes' ;
6
+ import { FocusOriginMonitor , FocusOrigin , CdkFocusClasses , TOUCH_BUFFER_MS } from './focus-classes' ;
7
7
8
8
describe ( 'FocusOriginMonitor' , ( ) => {
9
9
let fixture : ComponentFixture < PlainButton > ;
@@ -106,7 +106,7 @@ describe('FocusOriginMonitor', () => {
106
106
expect ( buttonElement . classList . contains ( 'cdk-touch-focused' ) )
107
107
. toBe ( true , 'button should have cdk-touch-focused class' ) ;
108
108
expect ( changeHandler ) . toHaveBeenCalledWith ( 'touch' ) ;
109
- } , 650 ) ;
109
+ } , TOUCH_BUFFER_MS ) ;
110
110
} ) ) ;
111
111
112
112
it ( 'should detect programmatic focus' , async ( ( ) => {
@@ -303,7 +303,7 @@ describe('cdkFocusClasses', () => {
303
303
expect ( buttonElement . classList . contains ( 'cdk-touch-focused' ) )
304
304
. toBe ( true , 'button should have cdk-touch-focused class' ) ;
305
305
expect ( changeHandler ) . toHaveBeenCalledWith ( 'touch' ) ;
306
- } , 650 ) ;
306
+ } , TOUCH_BUFFER_MS ) ;
307
307
} ) ) ;
308
308
309
309
it ( 'should detect programmatic focus' , async ( ( ) => {
0 commit comments