test: Don't mark tst_qscrollbar as insignificant on Mac OS X

Just XFAIL the failing test instead of ignoring the whole test.

Task-number: QTBUG-25272
Change-Id: Iedca9913032f13c6610b049a0313c9e4336216e0
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
This commit is contained in:
Sergio Ahumada 2012-04-12 12:23:46 +02:00 committed by Qt by Nokia
parent 9fd2edb6da
commit 87548de2ef
2 changed files with 3 additions and 2 deletions

View File

@ -2,5 +2,3 @@ CONFIG += testcase
TARGET = tst_qscrollbar
QT += widgets testlib
SOURCES += tst_qscrollbar.cpp
mac*:CONFIG+=insignificant_test

View File

@ -99,6 +99,9 @@ void tst_QScrollBar::scrollSingleStep()
QTest::mouseClick(testWidget, Qt::LeftButton, Qt::NoModifier, QPoint(sr.x(), sr.y()));
QTest::qWait(510); // initial delay is 500 for setRepeatAction
disconnect(testWidget, SIGNAL(actionTriggered(int)), 0, 0);
#ifdef Q_OS_MAC
QEXPECT_FAIL("", "This test fails on Mac OS X, see QTBUG-25272", Abort);
#endif
QCOMPARE(testWidget->value(), testWidget->singleStep());
}