diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-02-15 04:15:49 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-02-15 04:15:49 (GMT) |
commit | 1caff7f6909aa69f280d7ba89aeaad15e80563d8 (patch) | |
tree | 3abaa875d334f58a34d27865e7532bf5b1cd931f /tests/auto/declarative | |
parent | e55cb23edff635061ec9537c7589b900cc65a83c (diff) | |
download | Qt-1caff7f6909aa69f280d7ba89aeaad15e80563d8.zip Qt-1caff7f6909aa69f280d7ba89aeaad15e80563d8.tar.gz Qt-1caff7f6909aa69f280d7ba89aeaad15e80563d8.tar.bz2 |
Make tst_qmlmetatype stable
Diffstat (limited to 'tests/auto/declarative')
-rw-r--r-- | tests/auto/declarative/qmlmetatype/tst_qmlmetatype.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/auto/declarative/qmlmetatype/tst_qmlmetatype.cpp b/tests/auto/declarative/qmlmetatype/tst_qmlmetatype.cpp index ccb8f30..c336226 100644 --- a/tests/auto/declarative/qmlmetatype/tst_qmlmetatype.cpp +++ b/tests/auto/declarative/qmlmetatype/tst_qmlmetatype.cpp @@ -157,9 +157,12 @@ void tst_qmlmetatype::copy() QT_COPY_TEST(QStringList, QStringList() << "QML" << "Rocks"); QT_COPY_TEST(QByteArray, QByteArray("0x1102DDD")); QT_COPY_TEST(QBitArray, QBitArray(102, true)); - QT_COPY_TEST(QDate, QDate::currentDate()); - QT_COPY_TEST(QTime, QTime::currentTime()); - QT_COPY_TEST(QDateTime, QDateTime::currentDateTime()); + QDate cd = QDate::currentDate(); + QT_COPY_TEST(QDate, cd); + QTime ct = QTime::currentTime(); + QT_COPY_TEST(QTime, ct); + QDateTime cdt = QDateTime::currentDateTime(); + QT_COPY_TEST(QDateTime, cdt); QT_COPY_TEST(QUrl, QUrl("http://www.nokia.com")); QT_COPY_TEST(QLocale, QLocale(QLocale::English, QLocale::Australia)); QT_COPY_TEST(QRect, QRect(-10, 10, 102, 99)); |