aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/checkDate-denormal-year.qml
blob: 90514c39c8404c50ea74cedab59bb42fb7a6d623 (plain)
1
2
3
4
5
6
7
8
9
10
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)
    }
}