summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/animations/tst_animations.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-02-01 05:20:44 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-02-01 05:20:44 (GMT)
commit789d4e494565a3588431c7a640bb8e07e98e04be (patch)
treee0e1288e5171b19f87bcd91f308e358622490843 /tests/auto/declarative/animations/tst_animations.cpp
parent6c51b1c9e456f39d4e75303fe74d348e7f859e1b (diff)
parenta6f90ca4d73365d37bdc4eaf8fe15cf55fe1bf83 (diff)
downloadQt-789d4e494565a3588431c7a640bb8e07e98e04be.zip
Qt-789d4e494565a3588431c7a640bb8e07e98e04be.tar.gz
Qt-789d4e494565a3588431c7a640bb8e07e98e04be.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'tests/auto/declarative/animations/tst_animations.cpp')
-rw-r--r--tests/auto/declarative/animations/tst_animations.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/declarative/animations/tst_animations.cpp b/tests/auto/declarative/animations/tst_animations.cpp
index 35eae73..7f043ba 100644
--- a/tests/auto/declarative/animations/tst_animations.cpp
+++ b/tests/auto/declarative/animations/tst_animations.cpp
@@ -67,6 +67,7 @@ private slots:
void propertiesTransition();
void easingStringConversion();
void invalidDuration();
+ void attached();
};
#define QTIMED_COMPARE(lhs, rhs) do { \
@@ -563,6 +564,17 @@ void tst_animations::invalidDuration()
QCOMPARE(pauseAnimation->duration(), 250);
}
+void tst_animations::attached()
+{
+ QmlEngine engine;
+
+ QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/attached.qml"));
+ QTest::ignoreMessage(QtDebugMsg, "off");
+ QTest::ignoreMessage(QtDebugMsg, "on");
+ QmlGraphicsRectangle *rect = qobject_cast<QmlGraphicsRectangle*>(c.create());
+ QVERIFY(rect);
+}
+
QTEST_MAIN(tst_animations)
#include "tst_animations.moc"