summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/qdatetime
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-11-29 16:37:01 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-30 07:49:32 +0100
commit75b66dc8b036c4f4ef3ff8ea109efd698b72732d (patch)
treebb0d914726e2d49518960aa1f7264ed4e1c42702 /tests/auto/corelib/tools/qdatetime
parentfad19e18af7fd317a2f4e8daf537cbb46c63b8a7 (diff)
Cleanup corelib autotests
Remove references to the old bug tracker. The data from the old bug tracker is no longer accessible, so these markers are meaningless. Change-Id: Ib9d029d52b70fd0a512b9532d65f03763eabfe57 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/corelib/tools/qdatetime')
-rw-r--r--tests/auto/corelib/tools/qdatetime/tst_qdatetime.cpp53
1 files changed, 26 insertions, 27 deletions
diff --git a/tests/auto/corelib/tools/qdatetime/tst_qdatetime.cpp b/tests/auto/corelib/tools/qdatetime/tst_qdatetime.cpp
index b536b88fa3..2616988871 100644
--- a/tests/auto/corelib/tools/qdatetime/tst_qdatetime.cpp
+++ b/tests/auto/corelib/tools/qdatetime/tst_qdatetime.cpp
@@ -871,7 +871,6 @@ void tst_QDateTime::toUTC()
QSKIP("Not tested with timezone other than Central European (CET/CST)");
}
- // To make sure bug 72713 never happens again
QDateTime dt = QDateTime::currentDateTime();
if(dt.time().msec() == 0){
dt.setTime(dt.time().addMSecs(1));
@@ -1246,39 +1245,39 @@ void tst_QDateTime::fromStringTextDate_data()
QTest::addColumn<int>("msec");
QTest::addColumn<int>("timeSpec");
- QTest::newRow("task27910") << QString("Tue Jun 17 08:00:10 2003")
+ QTest::newRow("text date") << QString("Tue Jun 17 08:00:10 2003")
<< int(Qt::TextDate)
<< 17 << 6 << 2003 << 8 << 0 << 10 << 0
<< int(Qt::LocalTime);
- QTest::newRow("task77042") << QString("2005-06-28T07:57:30.0010000000Z")
+ QTest::newRow("ISO date") << QString("2005-06-28T07:57:30.0010000000Z")
<< int(Qt::ISODate)
<< 28 << 6 << 2005 << 7 << 57 << 30 << 1
<< int(Qt::UTC);
- QTest::newRow("task77042-2") << QString("2005-06-28T07:57:30,0040000000Z")
- << int(Qt::ISODate)
- << 28 << 6 << 2005 << 7 << 57 << 30 << 4
- << int(Qt::UTC);
-
- QTest::newRow("task77042-3") << QString("2005-06-28T07:57:30,0015Z")
- << int(Qt::ISODate)
- << 28 << 6 << 2005 << 7 << 57 << 30 << 2
- << int(Qt::UTC);
-
- QTest::newRow("task77042-4") << QString("2005-06-28T07:57:30,0014Z")
- << int(Qt::ISODate)
- << 28 << 6 << 2005 << 7 << 57 << 30 << 1
- << int(Qt::UTC);
-
- QTest::newRow("task77042-5") << QString("2005-06-28T07:57:30,1Z")
- << int(Qt::ISODate)
- << 28 << 6 << 2005 << 7 << 57 << 30 << 100
- << int(Qt::UTC);
-
- QTest::newRow("task77042-6") << QString("2005-06-28T07:57:30,11")
- << int(Qt::ISODate)
- << 28 << 6 << 2005 << 7 << 57 << 30 << 110
- << int(Qt::LocalTime);
+ QTest::newRow("ISO date with comma 1") << QString("2005-06-28T07:57:30,0040000000Z")
+ << int(Qt::ISODate)
+ << 28 << 6 << 2005 << 7 << 57 << 30 << 4
+ << int(Qt::UTC);
+
+ QTest::newRow("ISO date with comma 2") << QString("2005-06-28T07:57:30,0015Z")
+ << int(Qt::ISODate)
+ << 28 << 6 << 2005 << 7 << 57 << 30 << 2
+ << int(Qt::UTC);
+
+ QTest::newRow("ISO date with comma 3") << QString("2005-06-28T07:57:30,0014Z")
+ << int(Qt::ISODate)
+ << 28 << 6 << 2005 << 7 << 57 << 30 << 1
+ << int(Qt::UTC);
+
+ QTest::newRow("ISO date with comma 4") << QString("2005-06-28T07:57:30,1Z")
+ << int(Qt::ISODate)
+ << 28 << 6 << 2005 << 7 << 57 << 30 << 100
+ << int(Qt::UTC);
+
+ QTest::newRow("ISO date with comma 5") << QString("2005-06-28T07:57:30,11")
+ << int(Qt::ISODate)
+ << 28 << 6 << 2005 << 7 << 57 << 30 << 110
+ << int(Qt::LocalTime);
QTest::newRow("Year 0999") << QString("Tue Jun 17 08:00:10 0999")
<< int(Qt::TextDate)