Re-enabled passing tests in tst_qgraphicswidget
authorJo Asplin <jo.asplin@nokia.com>
Mon, 31 Oct 2011 10:52:32 +0000 (11:52 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 1 Nov 2011 12:15:44 +0000 (13:15 +0100)
To increase the effective test coverage, this patch
re-enables the tst_qgraphicswidget test case as such, and
instead disables only the test functions that are currently
failing in CI.

Task-number: QTBUG-22453
Change-Id: Ic484fde3492f077453f47a959dd6dc862288dcaf
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
tests/auto/widgets/graphicsview/qgraphicswidget/qgraphicswidget.pro
tests/auto/widgets/graphicsview/qgraphicswidget/tst_qgraphicswidget.cpp

index fd5cb38..afe584e 100644 (file)
@@ -8,4 +8,3 @@ SOURCES  += tst_qgraphicswidget.cpp
 
 
 mac*:CONFIG+=insignificant_test
-qpa:contains(QT_CONFIG,xcb):CONFIG+=insignificant_test  # QTBUG-20778 unstable on qpa, xcb
index c983016..164d556 100644 (file)
@@ -1158,6 +1158,7 @@ void tst_QGraphicsWidget::initStyleOption()
     QCOMPARE(hasFocus, focus);
     bool isUnderMouse = option.state & QStyle::State_MouseOver;
 #ifndef Q_OS_WINCE
+    QEXPECT_FAIL("all", "QTBUG-22457", Abort);
     QCOMPARE(isUnderMouse, underMouse);
 #endif
     // if (layoutDirection != Qt::LeftToRight)
@@ -3191,6 +3192,7 @@ void tst_QGraphicsWidget::initialShow2()
     view.show();
     QTest::qWaitForWindowShown(&view);
 
+    QEXPECT_FAIL("", "QTBUG-20778", Abort);
     QTRY_COMPARE(widget->repaints, expectedRepaintCount);
 }