[autotests] Added expected failures for developer build in a number of tests.
authorToby Tomkins <toby.tomkins@nokia.com>
Tue, 27 Sep 2011 03:42:45 +0000 (13:42 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 28 Sep 2011 00:14:48 +0000 (02:14 +0200)
Task-number: QTBUG-21683

Change-Id: I0cc6150daed38a8f2207fa848be79e8cc6c56b48
Reviewed-on: http://codereview.qt-project.org/5573
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
tests/auto/declarative/qsgfocusscope/tst_qsgfocusscope.cpp

index e2ac4c9..a21eeff 100644 (file)
@@ -237,6 +237,9 @@ void tst_qsgfocusscope::textEdit()
 
     QTest::qWaitForWindowShown(view);
 
+#ifdef QT_BUILD_INTERNAL
+    QEXPECT_FAIL("", "QTBUG-21683 - Waiting for active window/focus fails for developer build", Abort);
+#endif
     QVERIFY(view->windowState() == Qt::WindowActive);
     QVERIFY(item0->hasActiveFocus() == true);
     QVERIFY(item1->hasActiveFocus() == true);
@@ -306,6 +309,9 @@ void tst_qsgfocusscope::forceFocus()
     QVERIFY(item5->hasActiveFocus() == false);
 
     QTest::keyClick(view, Qt::Key_5);
+#ifdef QT_BUILD_INTERNAL
+    QEXPECT_FAIL("", "QTBUG-216823- Waiting for active window/focus fails for developer build", Abort);
+#endif
     QVERIFY(item0->hasActiveFocus() == false);
     QVERIFY(item1->hasActiveFocus() == false);
     QVERIFY(item2->hasActiveFocus() == false);
@@ -407,6 +413,9 @@ void tst_qsgfocusscope::qtBug13380()
 
     QTest::qWaitForWindowShown(view);
 
+#ifdef QT_BUILD_INTERNAL
+    QEXPECT_FAIL("", "QTBUG-21683 - Waiting for active window fails for developer build", Abort);
+#endif
     QVERIFY(view->windowState() == Qt::WindowActive);
     QVERIFY(view->rootObject()->property("noFocus").toBool());
 
@@ -566,6 +575,9 @@ void tst_qsgfocusscope::canvasFocus()
 
     // until the canvas widget has gained focus, no one should have active focus
     QCOMPARE((view->windowState() == Qt::WindowActive), false);
+#ifdef QT_BUILD_INTERNAL
+    QEXPECT_FAIL("", "QTBUG-21683 - Waiting for active window/focus fails for developer build", Abort);
+#endif
     QCOMPARE(rootItem->hasFocus(), false);
     QCOMPARE(rootItem->hasActiveFocus(), false);
     QCOMPARE(scope1->hasFocus(), true);