diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-03-26 04:29:19 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-03-28 23:50:06 (GMT) |
commit | 078ff776e37aebe5b7e88e4b4f21da1158fac3c7 (patch) | |
tree | d3e4a466b6d7df796cfd5031760b53c210d3635e /tests/auto/declarative/qdeclarativeloader | |
parent | 921d6882caa4f4be78c747493295d3bdd3f1f673 (diff) | |
download | Qt-078ff776e37aebe5b7e88e4b4f21da1158fac3c7.zip Qt-078ff776e37aebe5b7e88e4b4f21da1158fac3c7.tar.gz Qt-078ff776e37aebe5b7e88e4b4f21da1158fac3c7.tar.bz2 |
Autotest tweaks.
Diffstat (limited to 'tests/auto/declarative/qdeclarativeloader')
-rw-r--r-- | tests/auto/declarative/qdeclarativeloader/tst_qdeclarativeloader.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeloader/tst_qdeclarativeloader.cpp b/tests/auto/declarative/qdeclarativeloader/tst_qdeclarativeloader.cpp index a745a24..05d968c 100644 --- a/tests/auto/declarative/qdeclarativeloader/tst_qdeclarativeloader.cpp +++ b/tests/auto/declarative/qdeclarativeloader/tst_qdeclarativeloader.cpp @@ -129,6 +129,10 @@ void tst_QDeclarativeLoader::component() QCOMPARE(loader->status(), QDeclarativeLoader::Ready); QCOMPARE(static_cast<QGraphicsItem*>(loader)->children().count(), 1); + QDeclarativeComponent *c = qobject_cast<QDeclarativeComponent*>(item->QGraphicsObject::children().at(0)); + QVERIFY(c); + QCOMPARE(loader->sourceComponent(), c); + delete loader; } |