summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativebehaviors
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2010-04-13 05:23:28 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2010-04-13 05:23:28 (GMT)
commit7fba97dc74a27f836abfcf4941dac6e247379798 (patch)
treead54e31c2650593c742652c75a73f984c2111e08 /tests/auto/declarative/qdeclarativebehaviors
parent36e8506084f272a01cfdc50ab787e9d30da60360 (diff)
parentbae8e41ff7d12ac10f69a4f03d97e736dace500d (diff)
downloadQt-7fba97dc74a27f836abfcf4941dac6e247379798.zip
Qt-7fba97dc74a27f836abfcf4941dac6e247379798.tar.gz
Qt-7fba97dc74a27f836abfcf4941dac6e247379798.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Conflicts: tests/auto/declarative/qdeclarativebehaviors/tst_qdeclarativebehaviors.cpp
Diffstat (limited to 'tests/auto/declarative/qdeclarativebehaviors')
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/data/binding.qml2
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/data/scripttrigger.qml2
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/qdeclarativebehaviors.pro3
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/tst_qdeclarativebehaviors.cpp5
4 files changed, 5 insertions, 7 deletions
diff --git a/tests/auto/declarative/qdeclarativebehaviors/data/binding.qml b/tests/auto/declarative/qdeclarativebehaviors/data/binding.qml
index e982f21..e9fb286 100644
--- a/tests/auto/declarative/qdeclarativebehaviors/data/binding.qml
+++ b/tests/auto/declarative/qdeclarativebehaviors/data/binding.qml
@@ -9,7 +9,7 @@ Rectangle {
objectName: "MyRect"
width: 100; height: 100; color: "green"
x: basex
- Behavior on x { NumberAnimation { duration: 500; } }
+ Behavior on x { NumberAnimation { duration: 800; } }
}
MouseArea {
id: clicker
diff --git a/tests/auto/declarative/qdeclarativebehaviors/data/scripttrigger.qml b/tests/auto/declarative/qdeclarativebehaviors/data/scripttrigger.qml
index b22441a..795b309 100644
--- a/tests/auto/declarative/qdeclarativebehaviors/data/scripttrigger.qml
+++ b/tests/auto/declarative/qdeclarativebehaviors/data/scripttrigger.qml
@@ -11,6 +11,6 @@ Rectangle {
id: rect
objectName: "MyRect"
width: 100; height: 100; color: "green"
- Behavior on x { NumberAnimation { duration: 500; } }
+ Behavior on x { NumberAnimation { duration: 800; } }
}
}
diff --git a/tests/auto/declarative/qdeclarativebehaviors/qdeclarativebehaviors.pro b/tests/auto/declarative/qdeclarativebehaviors/qdeclarativebehaviors.pro
index a1dac32..c2781b8 100644
--- a/tests/auto/declarative/qdeclarativebehaviors/qdeclarativebehaviors.pro
+++ b/tests/auto/declarative/qdeclarativebehaviors/qdeclarativebehaviors.pro
@@ -4,3 +4,6 @@ SOURCES += tst_qdeclarativebehaviors.cpp
macx:CONFIG -= app_bundle
DEFINES += SRCDIR=\\\"$$PWD\\\"
+
+CONFIG += parallel_test
+
diff --git a/tests/auto/declarative/qdeclarativebehaviors/tst_qdeclarativebehaviors.cpp b/tests/auto/declarative/qdeclarativebehaviors/tst_qdeclarativebehaviors.cpp
index b155c29..3bff2f5 100644
--- a/tests/auto/declarative/qdeclarativebehaviors/tst_qdeclarativebehaviors.cpp
+++ b/tests/auto/declarative/qdeclarativebehaviors/tst_qdeclarativebehaviors.cpp
@@ -170,29 +170,24 @@ void tst_qdeclarativebehaviors::replaceBinding()
QTRY_VERIFY(rect);
rect->setState("moved");
- //QTest::qWait(200);
QDeclarativeRectangle *innerRect = qobject_cast<QDeclarativeRectangle*>(rect->findChild<QDeclarativeRectangle*>("MyRect"));
QTRY_VERIFY(innerRect);
QTRY_VERIFY(innerRect->x() > 0);
QTRY_VERIFY(innerRect->x() < 200);
//i.e. the behavior has been triggered
- //QTest::qWait(600);
QTRY_COMPARE(innerRect->x(), (qreal)200);
rect->setProperty("basex", 10);
QTRY_COMPARE(innerRect->x(), (qreal)200);
rect->setProperty("movedx", 210);
- //QTest::qWait(600);
QTRY_COMPARE(innerRect->x(), (qreal)210);
rect->setState("");
QTRY_VERIFY(innerRect->x() > 10);
QTRY_VERIFY(innerRect->x() < 210); //i.e. the behavior has been triggered
- //QTest::qWait(600);
QTRY_COMPARE(innerRect->x(), (qreal)10);
rect->setProperty("movedx", 200);
QTRY_COMPARE(innerRect->x(), (qreal)10);
rect->setProperty("basex", 20);
- //QTest::qWait(600);
QTRY_COMPARE(innerRect->x(), (qreal)20);
delete rect;