summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/widgets
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2012-01-17 14:29:22 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-23 14:47:10 +0100
commitceed39419933eb3c872af689466adf561dd17813 (patch)
treeaea47d710f27c540e725438dd97908d16c3104f1 /tests/auto/widgets/widgets
parent95ea9cb1914b7307e1d832c7813f944f12e463b5 (diff)
Ignore tst_QAbstractSlider failures on Mac OS X
Mark current failures as expected. Task-number: QTBUG-23679 Change-Id: Ic574dbb0fea3a21ef9963ef16bdf85da4c809036 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Diffstat (limited to 'tests/auto/widgets/widgets')
-rw-r--r--tests/auto/widgets/widgets/qabstractslider/tst_qabstractslider.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/auto/widgets/widgets/qabstractslider/tst_qabstractslider.cpp b/tests/auto/widgets/widgets/qabstractslider/tst_qabstractslider.cpp
index c046f9f471..63bd7fdc3d 100644
--- a/tests/auto/widgets/widgets/qabstractslider/tst_qabstractslider.cpp
+++ b/tests/auto/widgets/widgets/qabstractslider/tst_qabstractslider.cpp
@@ -868,6 +868,11 @@ void tst_QAbstractSlider::wheelEvent()
QWheelEvent event(slider->rect().bottomRight() + distanceFromBottomRight, WHEEL_DELTA * deltaMultiple,
Qt::NoButton, k, orientation);
QVERIFY(applicationInstance->sendEvent(slider,&event));
+#ifdef Q_OS_MAC
+ QEXPECT_FAIL("Normal data page", "QTBUG-23679", Continue);
+ QEXPECT_FAIL("Different orientation", "QTBUG-23679", Continue);
+ QEXPECT_FAIL("Different orientation2", "QTBUG-23679", Continue);
+#endif
QCOMPARE(slider->sliderPosition(),expectedSliderPosition);
slider->setSliderPosition(initialSliderPosition);
@@ -877,6 +882,11 @@ void tst_QAbstractSlider::wheelEvent()
QSignalSpy spy1(slider, SIGNAL(actionTriggered(int)));
QSignalSpy spy2(slider, SIGNAL(valueChanged(int)));
QVERIFY(applicationInstance->sendEvent(slider,&event));
+#ifdef Q_OS_MAC
+ QEXPECT_FAIL("Normal data page", "QTBUG-23679", Continue);
+ QEXPECT_FAIL("Different orientation", "QTBUG-23679", Continue);
+ QEXPECT_FAIL("Different orientation2", "QTBUG-23679", Continue);
+#endif
QCOMPARE(slider->sliderPosition(),expectedSliderPosition);
int expectedSignalCount = (initialSliderPosition == expectedSliderPosition) ? 0 : 1;
QCOMPARE(spy1.count(), expectedSignalCount);
@@ -972,8 +982,14 @@ void tst_QAbstractSlider::sliderPressedReleased()
QStyle::SubControl(subControl), slider);
QTest::mousePress(slider, Qt::LeftButton, 0, QPoint(rect.center().x() + 2, rect.center().y() + 2));
+#ifdef Q_OS_MAC
+ QEXPECT_FAIL("scrollbar on the groove", "QTBUG-23679", Continue);
+#endif
QCOMPARE(spy1.count(), expectedCount);
QTest::mouseRelease(slider, Qt::LeftButton, 0, rect.center());
+#ifdef Q_OS_MAC
+ QEXPECT_FAIL("scrollbar on the groove", "QTBUG-23679", Continue);
+#endif
QCOMPARE(spy2.count(), expectedCount);
delete slider;