diff options
author | axis <qt-info@nokia.com> | 2009-10-30 12:34:46 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2009-10-30 12:34:46 (GMT) |
commit | 7a2fbdaaf06e69b1b35c7e5560127ff5cd93f362 (patch) | |
tree | f158cbf2c32d046e31473b2d70e462c07c43d122 /tests/auto | |
parent | 5e95f9c3c224b87840e750d4280806a40ed40c92 (diff) | |
parent | da9880eaed0d09338717db1a73db01e6b0ab080d (diff) | |
download | Qt-7a2fbdaaf06e69b1b35c7e5560127ff5cd93f362.zip Qt-7a2fbdaaf06e69b1b35c7e5560127ff5cd93f362.tar.gz Qt-7a2fbdaaf06e69b1b35c7e5560127ff5cd93f362.tar.bz2 |
Merge branch '4.6-s60' into 4.6
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qboxlayout/tst_qboxlayout.cpp | 1 | ||||
-rw-r--r-- | tests/auto/qdatetime/tst_qdatetime.cpp | 7 | ||||
-rw-r--r-- | tests/auto/qpixmap/tst_qpixmap.cpp | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/tests/auto/qboxlayout/tst_qboxlayout.cpp b/tests/auto/qboxlayout/tst_qboxlayout.cpp index 7ff444b..8887288 100644 --- a/tests/auto/qboxlayout/tst_qboxlayout.cpp +++ b/tests/auto/qboxlayout/tst_qboxlayout.cpp @@ -211,7 +211,6 @@ void tst_QBoxLayout::setGeometry() QRect newGeom(0, 0, 70, 70); lay2->setGeometry(newGeom); - QApplication::processEvents(); QVERIFY2(newGeom.contains(dial->geometry()), "dial->geometry() should be smaller and within newGeom"); } diff --git a/tests/auto/qdatetime/tst_qdatetime.cpp b/tests/auto/qdatetime/tst_qdatetime.cpp index 8fb0c91..c53780e 100644 --- a/tests/auto/qdatetime/tst_qdatetime.cpp +++ b/tests/auto/qdatetime/tst_qdatetime.cpp @@ -447,7 +447,14 @@ void tst_QDateTime::toString_enumformat() QCOMPARE(str2, QString("1995-05-20T12:34:56")); QString str3 = dt1.toString(Qt::LocalDate); + qDebug() << str3; QVERIFY(!str3.isEmpty()); + //check for date/time components in any order + QVERIFY(str3.contains("1995")); + //day and month may be in numeric or word form + QVERIFY(str3.contains("12")); + QVERIFY(str3.contains("34")); + QVERIFY(str3.contains("56")); } void tst_QDateTime::addDays() diff --git a/tests/auto/qpixmap/tst_qpixmap.cpp b/tests/auto/qpixmap/tst_qpixmap.cpp index 53b6230..8e02c74 100644 --- a/tests/auto/qpixmap/tst_qpixmap.cpp +++ b/tests/auto/qpixmap/tst_qpixmap.cpp @@ -1134,6 +1134,8 @@ void tst_QPixmap::fromSymbianCFbsBitmap_data() QTest::newRow("EColor4K big") << EColor4K << largeWidth << largeHeight << QColor(Qt::red); QTest::newRow("EColor64K small") << EColor64K << smallWidth << smallHeight << QColor(Qt::green); QTest::newRow("EColor64K big") << EColor64K << largeWidth << largeHeight << QColor(Qt::green); + QTest::newRow("EColor16M small") << EColor16M << smallWidth << smallHeight << QColor(Qt::yellow); + QTest::newRow("EColor16M big") << EColor16M << largeWidth << largeHeight << QColor(Qt::yellow); QTest::newRow("EColor16MU small") << EColor16MU << smallWidth << smallHeight << QColor(Qt::red); QTest::newRow("EColor16MU big") << EColor16MU << largeWidth << largeHeight << QColor(Qt::red); QTest::newRow("EColor16MA small opaque") << EColor16MA << smallWidth << smallHeight << QColor(255, 255, 0); |