summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeengine/tst_qdeclarativeengine.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-04-22 05:01:02 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-04-27 01:56:45 (GMT)
commitddc7fcee9c3602bcbb79a6b8538315a633fa3db4 (patch)
tree90b7669402ff1e4d2e8bbe9e98762f772a53fdba /tests/auto/declarative/qdeclarativeengine/tst_qdeclarativeengine.cpp
parent46cf45c5c9dc74bf2cbe42c8a57be194ea9cf8cd (diff)
downloadQt-ddc7fcee9c3602bcbb79a6b8538315a633fa3db4.zip
Qt-ddc7fcee9c3602bcbb79a6b8538315a633fa3db4.tar.gz
Qt-ddc7fcee9c3602bcbb79a6b8538315a633fa3db4.tar.bz2
Autotests
Diffstat (limited to 'tests/auto/declarative/qdeclarativeengine/tst_qdeclarativeengine.cpp')
-rw-r--r--tests/auto/declarative/qdeclarativeengine/tst_qdeclarativeengine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeengine/tst_qdeclarativeengine.cpp b/tests/auto/declarative/qdeclarativeengine/tst_qdeclarativeengine.cpp
index ee320aa..b0db771 100644
--- a/tests/auto/declarative/qdeclarativeengine/tst_qdeclarativeengine.cpp
+++ b/tests/auto/declarative/qdeclarativeengine/tst_qdeclarativeengine.cpp
@@ -297,6 +297,8 @@ void tst_qdeclarativeengine::objectOwnership()
{
QObject o;
QCOMPARE(QDeclarativeEngine::objectOwnership(&o), QDeclarativeEngine::CppOwnership);
+ QDeclarativeEngine::setObjectOwnership(&o, QDeclarativeEngine::CppOwnership);
+ QCOMPARE(QDeclarativeEngine::objectOwnership(&o), QDeclarativeEngine::CppOwnership);
QDeclarativeEngine::setObjectOwnership(&o, QDeclarativeEngine::JavaScriptOwnership);
QCOMPARE(QDeclarativeEngine::objectOwnership(&o), QDeclarativeEngine::JavaScriptOwnership);
QDeclarativeEngine::setObjectOwnership(&o, QDeclarativeEngine::CppOwnership);