aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickspritesequence/tst_qquickspritesequence.cpp
diff options
context:
space:
mode:
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"