summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative
diff options
context:
space:
mode:
authorLeonardo Sobral Cunha <leo.cunha@nokia.com>2010-04-12 01:02:13 (GMT)
committerLeonardo Sobral Cunha <leo.cunha@nokia.com>2010-04-12 01:02:13 (GMT)
commit2096a93fffa4b8986ea0bd6d93aa1457b8f359e2 (patch)
tree87e094bb835b98d25db29c79fdd034e683469aae /tests/auto/declarative
parent0eb289bada4edb57de83d690c904a9c77c23caa2 (diff)
downloadQt-2096a93fffa4b8986ea0bd6d93aa1457b8f359e2.zip
Qt-2096a93fffa4b8986ea0bd6d93aa1457b8f359e2.tar.gz
Qt-2096a93fffa4b8986ea0bd6d93aa1457b8f359e2.tar.bz2
Adds missing qml file to qdeclarativeflipable autotest
Diffstat (limited to 'tests/auto/declarative')
-rw-r--r--tests/auto/declarative/qdeclarativeflipable/data/flipable-abort.qml10
-rw-r--r--tests/auto/declarative/qdeclarativeflipable/tst_qdeclarativeflipable.cpp4
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeflipable/data/flipable-abort.qml b/tests/auto/declarative/qdeclarativeflipable/data/flipable-abort.qml
new file mode 100644
index 0000000..f6f2014
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeflipable/data/flipable-abort.qml
@@ -0,0 +1,10 @@
+import Qt 4.6
+
+Rectangle {
+ Flipable {
+ id: flipable
+ }
+ Rectangle {
+ visible: flipable.side == Flipable.Front
+ }
+}
diff --git a/tests/auto/declarative/qdeclarativeflipable/tst_qdeclarativeflipable.cpp b/tests/auto/declarative/qdeclarativeflipable/tst_qdeclarativeflipable.cpp
index 4beee9a..7e5c3dd 100644
--- a/tests/auto/declarative/qdeclarativeflipable/tst_qdeclarativeflipable.cpp
+++ b/tests/auto/declarative/qdeclarativeflipable/tst_qdeclarativeflipable.cpp
@@ -117,6 +117,8 @@ void tst_qdeclarativeflipable::QTBUG_9161_crash()
{
QDeclarativeView *canvas = new QDeclarativeView;
canvas->setSource(QUrl(SRCDIR "/data/crash.qml"));
+ QGraphicsObject *root = canvas->rootObject();
+ QVERIFY(root != 0);
canvas->show();
delete canvas;
}
@@ -125,6 +127,8 @@ void tst_qdeclarativeflipable::QTBUG_8474_qgv_abort()
{
QDeclarativeView *canvas = new QDeclarativeView;
canvas->setSource(QUrl(SRCDIR "/data/flipable-abort.qml"));
+ QGraphicsObject *root = canvas->rootObject();
+ QVERIFY(root != 0);
canvas->show();
delete canvas;
}