Part of bug has re-occurred, relates to x{} behaviour.

Task-number: QTBUG-12295

Change-Id: Idcb9ceac1ad0b093e560ef793820a1ea2178c51e
Reviewed-on: http://codereview.qt-project.org/5483
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
This commit is contained in:
Toby Tomkins 2011-09-27 11:55:27 +10:00 committed by Qt by Nokia
parent 6fc6683284
commit 1469fee209
1 changed files with 3 additions and 0 deletions

View File

@ -404,6 +404,9 @@ void tst_qdeclarativebehaviors::sameValue()
QCOMPARE(target->x(), qreal(100));
target->setProperty("x", 0);
#ifdef QT_BUILD_INTERNAL
QEXPECT_FAIL("", "QTBUG-12295 - Behaviour on x {} does not work consistently.", Continue);
#endif
QTRY_VERIFY(target->x() != qreal(0) && target->x() != qreal(100));
QTRY_VERIFY(target->x() == qreal(0)); //make sure Behavior has finished.