@@ -186,8 +186,8 @@ describe('IgxTimePicker', () => {
186
186
it ( 'Should not throw Validation Failed event with null value passed in' , fakeAsync ( ( ) => {
187
187
const fixture = TestBed . createComponent ( IgxTimePickerWithPmTimeComponent ) ;
188
188
fixture . componentInstance . dateValue = null ;
189
+ fixture . componentInstance . mode = 'dropdown' ;
189
190
fixture . detectChanges ( ) ;
190
-
191
191
const timePicker = fixture . componentInstance . timePicker ;
192
192
const dom = fixture . debugElement ;
193
193
const timePickerTarget = dom . query ( By . directive ( IgxInputDirective ) ) ;
@@ -203,12 +203,12 @@ describe('IgxTimePicker', () => {
203
203
fixture . detectChanges ( ) ;
204
204
205
205
expect ( timePicker . onValidationFailed . emit ) . not . toHaveBeenCalled ( ) ;
206
+ expect ( timePicker . displayValue ) . toEqual ( '--:--:-- --' ) ;
206
207
} ) ) ;
207
208
208
209
it ( 'TimePicker cancel button' , fakeAsync ( ( ) => {
209
210
const fixture = TestBed . createComponent ( IgxTimePickerWithPmTimeComponent ) ;
210
211
fixture . detectChanges ( ) ;
211
-
212
212
const timePicker = fixture . componentInstance . timePicker ;
213
213
const dom = fixture . debugElement ;
214
214
const initialTime = dom . query ( By . directive ( IgxInputDirective ) ) . nativeElement . value ;
@@ -2046,12 +2046,13 @@ export class IgxTimePickerWithPassedTimeComponent {
2046
2046
2047
2047
@Component ( {
2048
2048
template : `
2049
- <igx-time-picker [value]="dateValue" [format]="customFormat"></igx-time-picker>
2049
+ <igx-time-picker [mode]="mode" [ value]="dateValue" [format]="customFormat"></igx-time-picker>
2050
2050
`
2051
2051
} )
2052
2052
export class IgxTimePickerWithPmTimeComponent {
2053
2053
public dateValue : Date = new Date ( 2017 , 7 , 7 , 12 , 27 , 23 ) ;
2054
2054
public customFormat = 'h:mm:ss tt' ;
2055
+ public mode = 'dialog' ;
2055
2056
@ViewChild ( IgxTimePickerComponent , { static : true } ) public timePicker : IgxTimePickerComponent ;
2056
2057
}
2057
2058
0 commit comments