diff options
author | Liang Qi <liang.qi@qt.io> | 2019-10-10 13:59:00 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2019-10-10 16:18:19 +0200 |
commit | 45f95e74297ab3778965319c175a6d726f9c8afe (patch) | |
tree | 24a9b79eeaf62ffb6a5936cb0ef2673d426df1ec /tests/auto/qml/qqmlecmascript/data/checkDate-denormal-leap.qml | |
parent | 6fceeab1d15e1d6c1fa3d8e067f2acdeccb78e64 (diff) | |
parent | aa057451b35953018c4f94d0a4bd5e813767cbc9 (diff) |
Merge "Merge remote-tracking branch 'origin/5.13' into 5.14"
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/checkDate-denormal-leap.qml')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/data/checkDate-denormal-leap.qml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/checkDate-denormal-leap.qml b/tests/auto/qml/qqmlecmascript/data/checkDate-denormal-leap.qml new file mode 100644 index 0000000000..6dd84810e6 --- /dev/null +++ b/tests/auto/qml/qqmlecmascript/data/checkDate-denormal-leap.qml @@ -0,0 +1,11 @@ +import Qt.test 1.0 +import QtQuick 2.0 + +MyTypeObject { + Component.onCompleted: { + dateProperty = new Date(2020, 2, 0) // Feb 29th + boolProperty = (dateProperty.getFullYear() == 2020 + && dateProperty.getMonth() == 1 + && dateProperty.getDate() == 29) + } +} |