aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickspritesequence/tst_qquickspritesequence.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2014-10-30 09:13:04 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-10-30 09:13:04 +0100
commit970ff81a14c93c4f41f384026220d4baad8eec70 (patch)
treeb99ff97b74be8ddcddd5b5037f172aea06623581 /tests/auto/quick/qquickspritesequence/tst_qquickspritesequence.cpp
parent4b73acd49cc4f08a5169efba8169f968094063e0 (diff)
parent4e33b069c426c975319d91e11223114fd0d8ad40 (diff)
Merge "Merge remote-tracking branch 'origin/5.4' into dev" into refs/staging/dev
Diffstat (limited to 'tests/auto/quick/qquickspritesequence/tst_qquickspritesequence.cpp')
-rw-r--r--tests/auto/quick/qquickspritesequence/tst_qquickspritesequence.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickspritesequence/tst_qquickspritesequence.cpp b/tests/auto/quick/qquickspritesequence/tst_qquickspritesequence.cpp
index 6cfdc90364..26ddff1009 100644
--- a/tests/auto/quick/qquickspritesequence/tst_qquickspritesequence.cpp
+++ b/tests/auto/quick/qquickspritesequence/tst_qquickspritesequence.cpp
@@ -46,6 +46,8 @@ private slots:
void test_framerateAdvance();//Separate codepath for QQuickSpriteEngine
void test_huge();//Separate codepath for QQuickSpriteEngine
void test_jumpToCrash();
+ void test_spriteBeforeGoal();
+ void test_spriteAfterGoal();
};
void tst_qquickspritesequence::test_properties()
@@ -119,6 +121,30 @@ void tst_qquickspritesequence::test_jumpToCrash()
delete window;
}
+void tst_qquickspritesequence::test_spriteBeforeGoal()
+{
+ QQuickView *window = new QQuickView(0);
+
+ window->setSource(testFileUrl("spritebeforegoal.qml"));
+ window->show();
+ QVERIFY(QTest::qWaitForWindowExposed(window));
+ //verify: Don't crash
+
+ delete window;
+}
+
+void tst_qquickspritesequence::test_spriteAfterGoal()
+{
+ QQuickView *window = new QQuickView(0);
+
+ window->setSource(testFileUrl("spriteaftergoal.qml"));
+ window->show();
+ QVERIFY(QTest::qWaitForWindowExposed(window));
+ //verify: Don't crash
+
+ delete window;
+}
+
QTEST_MAIN(tst_qquickspritesequence)
#include "tst_qquickspritesequence.moc"