Add unitest code for dateTimeDigitSet and decimalPlaces
This commit is contained in:
parent
37dd4360d2
commit
a02ae1eb52
@ -66,6 +66,8 @@ Item {
|
|||||||
//locale.currencySymbol = TODO
|
//locale.currencySymbol = TODO
|
||||||
//console.log("currencySymbol" + locale.currencySymbol)
|
//console.log("currencySymbol" + locale.currencySymbol)
|
||||||
|
|
||||||
|
//locale.dateTimeDigitSet = DigitSet.EasternArabicIndicDigits
|
||||||
|
|
||||||
locale.dateFormat = "Y"
|
locale.dateFormat = "Y"
|
||||||
console.log("dateFormat:" + locale.dateFormat)
|
console.log("dateFormat:" + locale.dateFormat)
|
||||||
|
|
||||||
@ -75,6 +77,9 @@ Item {
|
|||||||
locale.dateMonthNamePossessive = false
|
locale.dateMonthNamePossessive = false
|
||||||
console.log("dateMonthNamePossessive:" + locale.dateMonthNamePossessive)
|
console.log("dateMonthNamePossessive:" + locale.dateMonthNamePossessive)
|
||||||
|
|
||||||
|
locale.decimalPlaces = 2
|
||||||
|
console.log("decimalPlaces:" + locale.decimalPlaces)
|
||||||
|
|
||||||
console.log("===========end===========")
|
console.log("===========end===========")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -133,6 +138,16 @@ Item {
|
|||||||
console.log("the dateMonthNamePossessive property has been changed")
|
console.log("the dateMonthNamePossessive property has been changed")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dateTimeDigitSet: Digit.ArabicDigits
|
||||||
|
onDateTimeDigitSet: {
|
||||||
|
console.log("the dateTimeDigitSet property has been changed")
|
||||||
|
}
|
||||||
|
|
||||||
|
decimalPlaces: 1
|
||||||
|
onDecimalPlacesChanged: {
|
||||||
|
console.log("the decimalPlaces property has been changed")
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CalendarSystem {
|
CalendarSystem {
|
||||||
|
Loading…
Reference in New Issue
Block a user