aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/checkDateTime-denormal-hours.qml
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@qt.io>2019-10-11 09:54:18 +0200
committerFrederik Gladhorn <frederik.gladhorn@qt.io>2019-10-11 09:54:18 +0200
commitaa268cae8df5a65106a48c0764b31118d8bf5f1e (patch)
treee1564d7bc3c6b8233d334e0ac41641da242a1839 /tests/auto/qml/qqmlecmascript/data/checkDateTime-denormal-hours.qml
parentbbc5e0f2d25618b1e170b5f92fda3089e5f3965a (diff)
parent6ec54900daf5290c6f147f1d539f3408bf78cf33 (diff)
Merge 5.13 into 5.13.2
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/checkDateTime-denormal-hours.qml')
-rw-r--r--tests/auto/qml/qqmlecmascript/data/checkDateTime-denormal-hours.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/checkDateTime-denormal-hours.qml b/tests/auto/qml/qqmlecmascript/data/checkDateTime-denormal-hours.qml
new file mode 100644
index 0000000000..7d018e2904
--- /dev/null
+++ b/tests/auto/qml/qqmlecmascript/data/checkDateTime-denormal-hours.qml
@@ -0,0 +1,15 @@
+import Qt.test 1.0
+import QtQuick 2.0
+
+MyTypeObject {
+ Component.onCompleted: {
+ dateTimeProperty = new Date(2019, 11, 31, 1440) // 2020-2-29 0:0:0
+ boolProperty = (dateTimeProperty.getFullYear() == 2020
+ && dateTimeProperty.getMonth() == 1
+ && dateTimeProperty.getDate() == 29
+ && dateTimeProperty.getHours() == 0
+ && dateTimeProperty.getMinutes() == 0
+ && dateTimeProperty.getSeconds() == 0
+ && dateTimeProperty.getMilliseconds() == 0)
+ }
+}