Verify that QML can reliably receive datetime info from C++
authorMatthew Vogt <matthew.vogt@nokia.com>
Mon, 23 Apr 2012 05:14:42 +0000 (15:14 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 23 Apr 2012 22:33:25 +0000 (00:33 +0200)
commit5dac3d9f846d0a9cffb95608219fefd4079a7bc2
treeaf71dea03eb2fd7c46e3e584380e7007d2a78eea
parenta8e017fbc22d8ec445fc9202479a775bdac4d5b0
Verify that QML can reliably receive datetime info from C++

Since a JavaScript Date object does not contain any information about
the timezone in which it is specified, a C++ module that exports
datetime information to QML must also provide the relevant timezone
data so that clients can correctly interpret the datetime value.

Provide an example of exporting datetime information to QML, verifying
that the data can be correctly interpreted in JS.

Task-number: QTBUG-25262
Change-Id: I732797da225861470e6b034f2e3d89a43df36cf7
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
tests/auto/qml/qqmlecmascript/data/exportDate.2.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/exportDate.3.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/exportDate.4.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/exportDate.5.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/exportDate.6.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/exportDate.7.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/exportDate.8.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/exportDate.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/testtypes.h
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp