@@ -12,7 +12,7 @@ import { InteractionMode } from '../core/enums';
12
12
import { IgxIconModule } from '../icon' ;
13
13
import { IgxToggleModule } from '../directives/toggle/toggle.directive' ;
14
14
15
- describe ( 'IgxTimePicker' , ( ) => {
15
+ fdescribe ( 'IgxTimePicker' , ( ) => {
16
16
configureTestSuite ( ) ;
17
17
beforeEach ( async ( ( ) => {
18
18
TestBed . configureTestingModule ( {
@@ -201,8 +201,8 @@ describe('IgxTimePicker', () => {
201
201
it ( 'Should not throw Validation Failed event with null value passed in' , fakeAsync ( ( ) => {
202
202
const fixture = TestBed . createComponent ( IgxTimePickerWithPmTimeComponent ) ;
203
203
fixture . componentInstance . dateValue = null ;
204
+ fixture . componentInstance . mode = 'dropdown' ;
204
205
fixture . detectChanges ( ) ;
205
-
206
206
const timePicker = fixture . componentInstance . timePicker ;
207
207
const dom = fixture . debugElement ;
208
208
const timePickerTarget = dom . query ( By . directive ( IgxInputDirective ) ) ;
@@ -218,12 +218,12 @@ describe('IgxTimePicker', () => {
218
218
fixture . detectChanges ( ) ;
219
219
220
220
expect ( timePicker . onValidationFailed . emit ) . not . toHaveBeenCalled ( ) ;
221
+ expect ( timePicker . displayValue ) . toEqual ( '--:-- --' ) ;
221
222
} ) ) ;
222
223
223
224
it ( 'TimePicker cancel button' , fakeAsync ( ( ) => {
224
225
const fixture = TestBed . createComponent ( IgxTimePickerWithPmTimeComponent ) ;
225
226
fixture . detectChanges ( ) ;
226
-
227
227
const timePicker = fixture . componentInstance . timePicker ;
228
228
const dom = fixture . debugElement ;
229
229
const initialTime = dom . query ( By . directive ( IgxInputDirective ) ) . nativeElement . value ;
@@ -1976,12 +1976,13 @@ export class IgxTimePickerWithPassedTimeComponent {
1976
1976
1977
1977
@Component ( {
1978
1978
template : `
1979
- <igx-time-picker [value]="dateValue" [format]="customFormat"></igx-time-picker>
1979
+ <igx-time-picker [mode]="mode" [ value]="dateValue" [format]="customFormat"></igx-time-picker>
1980
1980
`
1981
1981
} )
1982
1982
export class IgxTimePickerWithPmTimeComponent {
1983
- public dateValue : Date = new Date ( 2017 , 7 , 7 , 12 , 27 ) ;
1984
- public customFormat = 'h:mm tt' ;
1983
+ public dateValue : Date = new Date ( 2017 , 7 , 7 , 12 , 27 , 23 ) ;
1984
+ public customFormat = 'h:mm:ss tt' ;
1985
+ public mode = 'dialog' ;
1985
1986
@ViewChild ( IgxTimePickerComponent , { static : true } ) public timePicker : IgxTimePickerComponent ;
1986
1987
}
1987
1988
0 commit comments