Tests: Remove Q_WS_QPA
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Fri, 21 Oct 2011 11:49:08 +0000 (13:49 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 24 Oct 2011 06:53:06 +0000 (08:53 +0200)
Prepare for compilation without -qpa.

Change-Id: I8ec76d4ea3d045be457e728391462a8b195c8883
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/declarative/examples/tst_examples.cpp
tests/auto/declarative/qquickimage/tst_qquickimage.cpp
tests/auto/declarative/qquicktext/tst_qquicktext.cpp
tests/auto/qtquick1/qdeclarativetext/tst_qdeclarativetext.cpp
tests/auto/qtquick1/qdeclarativetextinput/tst_qdeclarativetextinput.cpp

index c14d41a..8c39c78 100644 (file)
@@ -68,9 +68,7 @@ private:
 tst_examples::tst_examples()
 {
     // Add directories you want excluded here
-#ifdef Q_WS_QPA
     excludedDirs << "examples/declarative/text/fonts"; // QTBUG-21415
-#endif
 
     // Not run in QQuickView
     excludedDirs << "examples/declarative/qtquick1";
index 3d7ee07..5106e3f 100644 (file)
@@ -342,9 +342,7 @@ void tst_qquickimage::mirror()
         }
 
         QImage img = expected.toImage();
-#ifdef Q_WS_QPA
         QEXPECT_FAIL("", "QTBUG-21005 fails", Continue);
-#endif
         QCOMPARE(screenshots[fillMode], img);
     }
 }
index 2fd4e23..3a08dd2 100644 (file)
@@ -1348,9 +1348,7 @@ void tst_qquicktext::lineHeight()
 
     qreal h = myText->height();
     myText->setLineHeight(1.5);
-#ifdef Q_WS_QPA
     QEXPECT_FAIL("", "QTBUG-21009 fails", Continue);
-#endif
     QVERIFY(myText->height() == h * 1.5);
 
     myText->setLineHeightMode(QQuickText::FixedHeight);
index 42a7fe1..61daebb 100644 (file)
@@ -1322,9 +1322,7 @@ void tst_qdeclarativetext::lineHeight()
 
     qreal h = myText->height();
     myText->setLineHeight(1.5);
-#ifdef Q_WS_QPA
     QEXPECT_FAIL("", "QTBUG-21015 fails", Continue);
-#endif
     QVERIFY(myText->height() == h * 1.5);
 
     myText->setLineHeightMode(QDeclarative1Text::FixedHeight);
index ff080cc..c01f129 100644 (file)
@@ -1336,10 +1336,8 @@ void tst_qdeclarativetextinput::positionAt()
     pos = textinputObject->positionAt(textinputObject->width()/2);
     diff = abs(int(fm.width(textinputObject->text().left(pos))-textinputObject->width()/2));
 
-#ifdef Q_WS_QPA
     QEXPECT_FAIL("", "QTBUG-21017 fails", Continue);
-#endif
-    // some tollerance for different fonts.
+    // some tolerance for different fonts.
 #ifdef Q_OS_LINUX
     QVERIFY(diff < 2);
 #else
@@ -2407,9 +2405,7 @@ void tst_qdeclarativetextinput::setHAlignClearCache()
     view.show();
     QApplication::setActiveWindow(&view);
     QTest::qWaitForWindowShown(&view);
-#ifdef Q_WS_QPA
     QEXPECT_FAIL("", "QTBUG-21017 fails", Abort);
-#endif
     QTRY_COMPARE(input.nbPaint, 1);
     input.setHAlign(QDeclarative1TextInput::AlignRight);
     QApplication::processEvents();
@@ -2518,9 +2514,7 @@ void tst_qdeclarativetextinput::preeditAutoScroll()
 
     // test the text is scrolled so the preedit is visible.
     ic.sendPreeditText(preeditText.mid(0, 3), 1);
-#ifdef Q_WS_QPA
     QEXPECT_FAIL("", "QTBUG-21017 fails", Abort);
-#endif
     QVERIFY(input.positionAt(0) != 0);
     QVERIFY(input.cursorRectangle().left() < input.boundingRect().width());
     QCOMPARE(cursorRectangleSpy.count(), ++cursorRectangleChanges);