diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-02-01 05:20:44 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-02-01 05:20:44 (GMT) |
commit | 789d4e494565a3588431c7a640bb8e07e98e04be (patch) | |
tree | e0e1288e5171b19f87bcd91f308e358622490843 /tests/auto/declarative/animations/tst_animations.cpp | |
parent | 6c51b1c9e456f39d4e75303fe74d348e7f859e1b (diff) | |
parent | a6f90ca4d73365d37bdc4eaf8fe15cf55fe1bf83 (diff) | |
download | Qt-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.cpp | 12 |
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" |