aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2012-07-30 10:19:34 +1000
committerQt by Nokia <qt-info@nokia.com>2012-07-30 14:27:09 +0200
commit2e6accbbbb9783ff6e5ad171f179d5021b0761af (patch)
treebf98b36cdbc7774546f61b1e51f3c9ec6e9e13e8 /tests
parent2d3584ff21b8ddd8186972d52ecf189d0963febc (diff)
Some autotests which failed on OSX don't fail anymore; others do
Seems to be better after the parallel touch/mouse propagation. Change-Id: I7336a451f18469d819a6105d58ae6dbb029a0c2c Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/quick/qquickflickable/tst_qquickflickable.cpp36
1 files changed, 16 insertions, 20 deletions
diff --git a/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp b/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp
index 97ee280b04..d8733820ac 100644
--- a/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp
+++ b/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp
@@ -204,10 +204,6 @@ void tst_qquickflickable::boundsBehavior()
void tst_qquickflickable::rebound()
{
-#ifdef Q_OS_MAC
- QSKIP("Producing flicks on Mac CI impossible due to timing problems");
-#endif
-
QQuickView *window = new QQuickView;
window->setSource(testFileUrl("rebound.qml"));
window->show();
@@ -255,6 +251,12 @@ void tst_qquickflickable::rebound()
window->rootObject()->setProperty("transitionsStarted", 0);
window->rootObject()->setProperty("transitionsFinished", 0);
+#ifdef Q_OS_MAC
+ QSKIP("QTBUG-26696 - sometimes fails on Mac");
+ delete window;
+ return;
+#endif
+
// flick and trigger the transition multiple times
// (moving signals are emitted as soon as the first transition starts)
flick(window, QPoint(20,20), QPoint(120,120), 200); // both x and y will bounce back
@@ -553,10 +555,6 @@ void tst_qquickflickable::movingAndFlicking_data()
void tst_qquickflickable::movingAndFlicking()
{
-#ifdef Q_OS_MAC
- QSKIP("Producing flicks on Mac CI impossible due to timing problems");
-#endif
-
QFETCH(bool, verticalEnabled);
QFETCH(bool, horizontalEnabled);
QFETCH(QPoint, flickToWithoutSnapBack);
@@ -752,7 +750,7 @@ void tst_qquickflickable::movingAndDragging()
QTest::mouseMove(window, moveFrom + moveByWithoutSnapBack*2);
QTest::mouseMove(window, moveFrom + moveByWithoutSnapBack*3);
- QVERIFY(flickable->isMoving());
+ QTRY_VERIFY(flickable->isMoving());
QCOMPARE(flickable->isMovingHorizontally(), horizontalEnabled);
QCOMPARE(flickable->isMovingVertically(), verticalEnabled);
QVERIFY(flickable->isDragging());
@@ -891,9 +889,6 @@ void tst_qquickflickable::movingAndDragging()
void tst_qquickflickable::flickOnRelease()
{
-#ifdef Q_OS_MAC
- QSKIP("Producing flicks on Mac CI impossible due to timing problems");
-#endif
QQuickView *window = new QQuickView;
window->setSource(testFileUrl("flickable03.qml"));
window->show();
@@ -920,6 +915,9 @@ void tst_qquickflickable::flickOnRelease()
// wait for any motion to end
QTRY_VERIFY(flickable->isMoving() == false);
+#ifdef Q_OS_MAC
+ QEXPECT_FAIL("", "QTBUG-26094 stopping on a full pixel doesn't work on OS X", Continue);
+#endif
// Stop on a full pixel after user interaction
QCOMPARE(flickable->contentY(), (qreal)qRound(flickable->contentY()));
@@ -928,10 +926,6 @@ void tst_qquickflickable::flickOnRelease()
void tst_qquickflickable::pressWhileFlicking()
{
-#ifdef Q_OS_MAC
- QSKIP("Producing flicks on Mac CI impossible due to timing problems");
-#endif
-
QQuickView *window = new QQuickView;
window->setSource(testFileUrl("flickable03.qml"));
window->show();
@@ -1015,10 +1009,6 @@ void tst_qquickflickable::disabled()
void tst_qquickflickable::flickVelocity()
{
-#ifdef Q_OS_MAC
- QSKIP("Producing flicks on Mac CI impossible due to timing problems");
-#endif
-
QQuickView *window = new QQuickView;
window->setSource(testFileUrl("flickable03.qml"));
window->show();
@@ -1038,6 +1028,12 @@ void tst_qquickflickable::flickVelocity()
QVERIFY(flickable->verticalVelocity() < 0.0);
QTRY_VERIFY(flickable->verticalVelocity() == 0.0);
+#ifdef Q_OS_MAC
+ QSKIP("boost doesn't work on OS X");
+ delete window;
+ return;
+#endif
+
// Flick multiple times and verify that flick acceleration is applied.
QQuickFlickablePrivate *fp = QQuickFlickablePrivate::get(flickable);
bool boosted = false;