diff options
Diffstat (limited to 'tests/auto/contacts/qcontactmanager/tst_qcontactmanager.cpp')
-rw-r--r-- | tests/auto/contacts/qcontactmanager/tst_qcontactmanager.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/auto/contacts/qcontactmanager/tst_qcontactmanager.cpp b/tests/auto/contacts/qcontactmanager/tst_qcontactmanager.cpp index a46cf97a9..6599db41f 100644 --- a/tests/auto/contacts/qcontactmanager/tst_qcontactmanager.cpp +++ b/tests/auto/contacts/qcontactmanager/tst_qcontactmanager.cpp @@ -3512,9 +3512,7 @@ void tst_QContactManager::compareVariant_data() QDateTime dt4(d5, t1); QDateTime dt5(d6, t4); // end of the universe - // Note: this test used to verify that null QDateTime compared less than a non-null date prior to 1AD - // The current Qt behavior is to compare null as the UNIX epoch, so we will follow that - QTest::newRow("datetimes dt0 > dt1") << QVariant(dt0) << QVariant(dt1) << Qt::CaseInsensitive << 1; + QTest::newRow("datetimes dt0 > dt1") << QVariant(dt0) << QVariant(dt1) << Qt::CaseInsensitive << -1; QTest::newRow("datetimes dt1 < dt2") << QVariant(dt1) << QVariant(dt2) << Qt::CaseInsensitive << -1; QTest::newRow("datetimes dt2 < dt3") << QVariant(dt2) << QVariant(dt3) << Qt::CaseInsensitive << -1; QTest::newRow("datetimes dt3 < dt4") << QVariant(dt3) << QVariant(dt4) << Qt::CaseInsensitive << -1; |