diff options
Diffstat (limited to 'tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp')
-rw-r--r-- | tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp index 50e93ca3c2..2a09ef2848 100644 --- a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp +++ b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp @@ -186,6 +186,8 @@ private slots: void objectDeletionNotify_data(); void objectDeletionNotify(); + void scopedProperties(); + private: QQmlEngine engine; QStringList defaultImportPathList; @@ -3111,6 +3113,15 @@ void tst_qqmllanguage::objectDeletionNotify() delete object; } +void tst_qqmllanguage::scopedProperties() +{ + QQmlComponent component(&engine, testFile("scopedProperties.qml")); + + QScopedPointer<QObject> o(component.create()); + QVERIFY(o != 0); + QVERIFY(o->property("success").toBool()); +} + QTEST_MAIN(tst_qqmllanguage) #include "tst_qqmllanguage.moc" |