aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/checkDate-denormal-year.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/checkDate-denormal-year.qml
parentbbc5e0f2d25618b1e170b5f92fda3089e5f3965a (diff)
parent6ec54900daf5290c6f147f1d539f3408bf78cf33 (diff)
Merge 5.13 into 5.13.2
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/checkDate-denormal-year.qml')
-rw-r--r--tests/auto/qml/qqmlecmascript/data/checkDate-denormal-year.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/checkDate-denormal-year.qml b/tests/auto/qml/qqmlecmascript/data/checkDate-denormal-year.qml
new file mode 100644
index 0000000000..90514c39c8
--- /dev/null
+++ b/tests/auto/qml/qqmlecmascript/data/checkDate-denormal-year.qml
@@ -0,0 +1,11 @@
+import Qt.test 1.0
+import QtQuick 2.0
+
+MyTypeObject {
+ Component.onCompleted: {
+ dateProperty = new Date(2019, 12, 0) // Dec 31
+ boolProperty = (dateProperty.getFullYear() == 2019
+ && dateProperty.getMonth() == 11
+ && dateProperty.getDate() == 31)
+ }
+}