mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(time-picker): properly handle 0 on hour and minutes with valueChanged (#10460)
closes https://github.com/NativeScript/NativeScript/issues/10457
This commit is contained in:
@@ -197,6 +197,13 @@ export class TimePickerTest extends testModule.UITest<timePickerModule.TimePicke
|
||||
TKUnit.assertEqual(actualValue, expectedValue);
|
||||
}
|
||||
|
||||
public testHourZeroFromLocalToNative() {
|
||||
let expectedValue = 0;
|
||||
this.testView.hour = expectedValue;
|
||||
let actualValue = timePickerTestsNative.getNativeHour(this.testView);
|
||||
TKUnit.assertEqual(actualValue, expectedValue);
|
||||
}
|
||||
|
||||
public testMinuteFromLocalToNative() {
|
||||
let expectedValue = 59;
|
||||
this.testView.minute = expectedValue;
|
||||
@@ -204,6 +211,13 @@ export class TimePickerTest extends testModule.UITest<timePickerModule.TimePicke
|
||||
TKUnit.assertEqual(actualValue, expectedValue);
|
||||
}
|
||||
|
||||
public testMinuteZeroFromLocalToNative() {
|
||||
let expectedValue = 0;
|
||||
this.testView.minute = expectedValue;
|
||||
let actualValue = timePickerTestsNative.getNativeMinute(this.testView);
|
||||
TKUnit.assertEqual(actualValue, expectedValue);
|
||||
}
|
||||
|
||||
public testHourFromNativeToLocal() {
|
||||
let expectedValue = 14;
|
||||
timePickerTestsNative.setNativeHour(this.testView, expectedValue);
|
||||
|
||||
Reference in New Issue
Block a user