Remove dead code and empty test functions.
authorJason McDonald <jason.mcdonald@nokia.com>
Fri, 7 Oct 2011 01:29:44 +0000 (11:29 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 7 Oct 2011 04:38:59 +0000 (06:38 +0200)
Change-Id: Iaf8ac514d814c9321f8dcd09b2bf3331f87154e6
Reviewed-on: http://codereview.qt-project.org/6191
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/lancelot/tst_lancelot.cpp
tests/auto/qcheckbox/tst_qcheckbox.cpp
tests/auto/qgraphicslinearlayout/tst_qgraphicslinearlayout.cpp
tests/auto/qlistwidget/tst_qlistwidget.cpp

index 79a221f..07ed74e 100644 (file)
@@ -111,9 +111,6 @@ void tst_Lancelot::initTestCase()
     // (e.g. script files not found) as just warnings, and not QFAILs, to avoid false negatives
     // caused by environment or server instability
 
-#if defined(Q_OS_SOMEPLATFORM)
-    QSKIP("This test is not supported on this platform.", SkipAll);
-#endif
     if (!proto.connect(QLatin1String("tst_Lancelot"), &dryRunMode, clientInfo))
         QSKIP(qPrintable(proto.errorMessage()), SkipAll);
 
index a11dfe0..d789059 100644 (file)
@@ -88,9 +88,6 @@ private slots:
     void clicked();
     void toggled();
     void stateChanged();
-    void accel();
-    void setAccel();
-    void group();
     void foregroundRole();
     void minimumSizeHint();
 
@@ -406,21 +403,6 @@ void tst_QCheckBox::isToggleButton()
     QVERIFY( testWidget->isCheckable() );
 }
 
-void tst_QCheckBox::accel()
-{
-    QSKIP("This test is empty for now", SkipAll);
-}
-
-void tst_QCheckBox::setAccel()
-{
-    QSKIP("This test is empty for now", SkipAll);
-}
-
-void tst_QCheckBox::group()
-{
-    QSKIP("This test is empty for now", SkipAll);
-}
-
 void tst_QCheckBox::foregroundRole()
 {
     QVERIFY(testWidget->foregroundRole() == QPalette::WindowText);
index 2891efa..873a711 100644 (file)
@@ -785,10 +785,6 @@ void tst_QGraphicsLinearLayout::orientation()
         else
             QCOMPARE(item->pos().x(), positions.at(i));
     }
-
-    //QSKIP("LayoutdirectionChange should only posted when QGraphicsWidget::setLayoutDirection() is called, right?", SkipAll);
-
-    //QCOMPARE(layout.layoutDirectionChange, 1);
 }
 
 void tst_QGraphicsLinearLayout::removeAt_data()
index 8bbd3c6..9ede38f 100644 (file)
@@ -1511,10 +1511,6 @@ public:
 
 void tst_QListWidget::fastScroll()
 {
-    if (qstrcmp(QApplication::style()->metaObject()->className(), "QS60Style") == 0) {
-        QSKIP("S60 style doesn't support fast scrolling", SkipAll);
-    }
-
     QWidget topLevel;
     MyListWidget widget(&topLevel);
     for (int i = 0; i < 50; ++i)