tests: acknowledge all known failures in declarative autotests
authorRohan McGovern <rohan.mcgovern@nokia.com>
Sun, 21 Aug 2011 23:25:30 +0000 (09:25 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 22 Aug 2011 03:35:40 +0000 (05:35 +0200)
This change XFAILs or CONFIG+=insignificant_tests all known failures in
declarative autotests, and links them to bug reports.

Note that the changes were only applied to qpa builds, although it is
possible some of these failures affect other platforms too.

Task-number: QTBUG-20990
Task-number: QTBUG-21000
Task-number: QTBUG-21001
Task-number: QTBUG-21004
Task-number: QTBUG-21005
Task-number: QTBUG-21007
Task-number: QTBUG-21008
Task-number: QTBUG-21009
Task-number: QTBUG-21010
Task-number: QTBUG-21011
Task-number: QTBUG-21012
Task-number: QTBUG-21013
Task-number: QTBUG-21015
Task-number: QTBUG-21016
Task-number: QTBUG-21017
Change-Id: Ieb89aa38e48e9e5162d87483d6441749865f234d
Reviewed-on: http://codereview.qt.nokia.com/3239
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Keith Isdale <keith.isdale@nokia.com>

16 files changed:
tests/auto/declarative/examples/examples.pro
tests/auto/declarative/qjsvalue/tst_qjsvalue.cpp
tests/auto/declarative/qsgborderimage/qsgborderimage.pro
tests/auto/declarative/qsgimage/tst_qsgimage.cpp
tests/auto/declarative/qsglistview/tst_qsglistview.cpp
tests/auto/declarative/qsgmousearea/tst_qsgmousearea.cpp
tests/auto/declarative/qsgtext/tst_qsgtext.cpp
tests/auto/declarative/qsgtextedit/qsgtextedit.pro
tests/auto/declarative/qsgtextinput/tst_qsgtextinput.cpp
tests/auto/qtquick1/qdeclarativebehaviors/tst_qdeclarativebehaviors.cpp
tests/auto/qtquick1/qdeclarativeflipable/qdeclarativeflipable.pro
tests/auto/qtquick1/qdeclarativefocusscope/qdeclarativefocusscope.pro
tests/auto/qtquick1/qdeclarativeitem/qdeclarativeitem.pro
tests/auto/qtquick1/qdeclarativetext/tst_qdeclarativetext.cpp
tests/auto/qtquick1/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
tests/auto/qtquick1/qdeclarativetextinput/tst_qdeclarativetextinput.cpp

index 8c3c030..d159396 100644 (file)
@@ -19,3 +19,5 @@ symbian: {
 CONFIG += parallel_test
 
 QT += core-private gui-private declarative-private qtquick1-private
+
+qpa:CONFIG+=insignificant_test  # QTBUG-20990, aborts
index 9f9e066..4eef465 100644 (file)
@@ -3705,6 +3705,9 @@ void tst_QJSValue::castToPointer()
         QJSValue v = eng.newVariant(int(123));
         int *ip = qjsvalue_cast<int*>(v);
         QVERIFY(ip != 0);
+#ifdef Q_WS_QPA
+        QEXPECT_FAIL("", "QTBUG-21000 fails", Abort);
+#endif
         QCOMPARE(*ip, 123);
         QEXPECT_FAIL("", "Pointer magic for variants is currently not supported by QJSEngine", Abort);
         *ip = 456;
index db7fe77..7b0c1d5 100644 (file)
@@ -16,3 +16,5 @@ symbian: {
 CONFIG += parallel_test
 
 QT += core-private gui-private declarative-private
+
+qpa:CONFIG+=insignificant_test  # QTBUG-21004 fails, unstably
index 5ac8c21..948f36c 100644 (file)
@@ -343,6 +343,9 @@ void tst_qsgimage::mirror()
         }
 
         QImage img = expected.toImage();
+#ifdef Q_WS_QPA
+        QEXPECT_FAIL("", "QTBUG-21005 fails", Continue);
+#endif
         QCOMPARE(screenshots[fillMode], img);
     }
 }
@@ -469,6 +472,9 @@ void tst_qsgimage::tiling_QTBUG_6716()
     QImage img = canvas->grabFrameBuffer();
     for (int x = 0; x < tiling->width(); ++x) {
         for (int y = 0; y < tiling->height(); ++y) {
+#ifdef Q_WS_QPA
+            QEXPECT_FAIL("", "QTBUG-21005 fails", Abort);
+#endif
             QVERIFY(img.pixel(x, y) == qRgb(0, 255, 0));
         }
     }
index e1e6edd..0cd10f6 100644 (file)
@@ -1147,6 +1147,9 @@ void tst_QSGListView::enforceRange_withoutHighlight()
 
     expectedPos += 20 + 10;     // scroll past 1st section and section delegate of 2nd section
     QTest::keyClick(canvas, Qt::Key_Down);
+#ifdef Q_WS_QPA
+    QEXPECT_FAIL("", "QTBUG-21007 fails", Abort);
+#endif
     QTRY_COMPARE(listview->contentY(), expectedPos);
 
     expectedPos += 20;     // scroll past 1st item of 2nd section
index 6e731d1..420eda9 100644 (file)
@@ -781,6 +781,9 @@ void tst_QSGMouseArea::hoverPosition()
     QMouseEvent moveEvent(QEvent::MouseMove, QPoint(10, 32), Qt::NoButton, Qt::NoButton, 0);
     QApplication::sendEvent(canvas, &moveEvent);
 
+#ifdef Q_WS_QPA
+    QEXPECT_FAIL("", "QTBUG-21008 fails", Abort);
+#endif
     QCOMPARE(root->property("mouseX").toReal(), qreal(10));
     QCOMPARE(root->property("mouseY").toReal(), qreal(32));
 
@@ -801,6 +804,9 @@ void tst_QSGMouseArea::hoverPropagation()
 
     QMouseEvent moveEvent(QEvent::MouseMove, QPoint(32, 32), Qt::NoButton, Qt::NoButton, 0);
     QApplication::sendEvent(canvas, &moveEvent);
+#ifdef Q_WS_QPA
+    QEXPECT_FAIL("", "QTBUG-21008 fails", Abort);
+#endif
     QCOMPARE(root->property("point1").toBool(), true);
     QCOMPARE(root->property("point2").toBool(), false);
 
index 747ea51..d972378 100644 (file)
@@ -1355,6 +1355,9 @@ void tst_qsgtext::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(QSGText::FixedHeight);
index fea4b71..491bb2d 100644 (file)
@@ -14,3 +14,5 @@ symbian: {
 }
 QT += core-private gui-private declarative-private
 QT += opengl-private
+
+qpa:CONFIG+=insignificant_test  # QTBUG-21010, fails unstably
index 744717c..9761180 100644 (file)
@@ -1267,6 +1267,10 @@ void tst_qsgtextinput::positionAt()
 
     diff = abs(int(textLeftWidth-textinputObject->width()/2));
 
+#ifdef Q_WS_QPA
+    QEXPECT_FAIL("", "QTBUG-21011 fails", Continue);
+#endif
+
     // some tollerance for different fonts.
 #ifdef Q_OS_LINUX
     QVERIFY(diff < 2);
@@ -2309,6 +2313,9 @@ void tst_qsgtextinput::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-21011 fails", Abort);
+#endif
     QVERIFY(input->positionAt(0) != 0);
     QVERIFY(input->cursorRectangle().left() < input->boundingRect().width());
     QCOMPARE(cursorRectangleSpy.count(), ++cursorRectangleChanges);
index 773fc24..68efbe1 100644 (file)
@@ -401,6 +401,9 @@ void tst_qdeclarativebehaviors::sameValue()
     QCOMPARE(target->x(), qreal(100));
 
     target->setProperty("x", 0);
+#ifdef Q_WS_QPA
+    QEXPECT_FAIL("", "QTBUG-21001 fails", Abort);
+#endif
     QTRY_VERIFY(target->x() != qreal(0) && target->x() != qreal(100));
     QTRY_VERIFY(target->x() == qreal(0));   //make sure Behavior has finished.
 
index 64d5d0a..22d015c 100644 (file)
@@ -15,3 +15,4 @@ symbian: {
 CONFIG += parallel_test
 
 QT += core-private gui-private declarative-private qtquick1-private
+qpa:contains(QT_CONFIG,xcb):CONFIG+=insignificant_test  # QTBUG-21012 fails on exit (X11-specific)
index f532585..5e943d7 100644 (file)
@@ -12,3 +12,4 @@ symbian: {
 }
 
 QT += core-private gui-private declarative-private qtquick1-private
+qpa:CONFIG+=insignificant_test  # QTBUG-21013 unstable
index 0b87e3c..459f80b 100644 (file)
@@ -15,3 +15,4 @@ symbian: {
 CONFIG += parallel_test
 
 QT += core-private gui-private declarative-private qtquick1-private
+qpa:contains(QT_CONFIG,xcb):CONFIG+=insignificant_test  # QTBUG-21012 fails on exit (X11-specific)
index d6984cb..8398ec6 100644 (file)
@@ -1329,6 +1329,9 @@ 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 94378e9..76f4687 100644 (file)
@@ -1617,6 +1617,9 @@ void tst_qdeclarativetextedit::positionAt()
     int pos = texteditObject->positionAt(texteditObject->width()/2, y0);
     int diff = abs(int(fm.width(texteditObject->text().left(pos))-texteditObject->width()/2));
 
+#ifdef Q_WS_QPA
+    QEXPECT_FAIL("", "QTBUG-21016 fails", Continue);
+#endif
     // some tollerance for different fonts.
 #ifdef Q_OS_LINUX
     QVERIFY(diff < 2);
index 7cc79c7..2d86a4b 100644 (file)
@@ -1324,6 +1324,9 @@ 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.
 #ifdef Q_OS_LINUX
     QVERIFY(diff < 2);
@@ -2336,6 +2339,9 @@ 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();
@@ -2444,6 +2450,9 @@ 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);