diff options
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/negativeyear.qml')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/data/negativeyear.qml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/negativeyear.qml b/tests/auto/qml/qqmlecmascript/data/negativeyear.qml index 11defbe914..e6c857d266 100644 --- a/tests/auto/qml/qqmlecmascript/data/negativeyear.qml +++ b/tests/auto/qml/qqmlecmascript/data/negativeyear.qml @@ -2,7 +2,12 @@ import QtQuick 2.0 import Qt.test 1.0 Item { - function check_negative() { + function check_negative_tostring() { return "result: " + new Date(-2000, 0, 1); } + + function check_negative_toisostring() { + // Make that february, to avoid timezone problems + return "result: " + (new Date(-2000, 1, 1)).toISOString(); + } } |