diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-12-18 01:18:33 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-12-18 01:18:33 (GMT) |
commit | 1900bfc37d38806894db2eb1deace8aff200ed88 (patch) | |
tree | 4dd64a5e1c3ffdb297240c28dd967beb65490cc0 /tests/auto/declarative | |
parent | 7f0b65bf04f96edf0d39547f499dea1746d69ba3 (diff) | |
parent | 0ad9f711969ddbf5995ddf2b7fcd5087698b93d1 (diff) | |
download | Qt-1900bfc37d38806894db2eb1deace8aff200ed88.zip Qt-1900bfc37d38806894db2eb1deace8aff200ed88.tar.gz Qt-1900bfc37d38806894db2eb1deace8aff200ed88.tar.bz2 |
Merge branch 'kinetic-declarativeui' of scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'tests/auto/declarative')
3 files changed, 22 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlecmascript/data/CustomObject.qml b/tests/auto/declarative/qmlecmascript/data/CustomObject.qml new file mode 100644 index 0000000..691d9ec --- /dev/null +++ b/tests/auto/declarative/qmlecmascript/data/CustomObject.qml @@ -0,0 +1,5 @@ +import Qt 4.6 + +QtObject { + property string greeting: "hello world" +} diff --git a/tests/auto/declarative/qmlecmascript/data/compositePropertyType.qml b/tests/auto/declarative/qmlecmascript/data/compositePropertyType.qml new file mode 100644 index 0000000..80a2814 --- /dev/null +++ b/tests/auto/declarative/qmlecmascript/data/compositePropertyType.qml @@ -0,0 +1,8 @@ +import Qt 4.6 + +QtObject { + property CustomObject myObject + myObject: CustomObject { } + + Component.onCompleted: console.log(myObject.greeting) +} diff --git a/tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp b/tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp index 24681b9..f560a90 100644 --- a/tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp +++ b/tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp @@ -110,6 +110,7 @@ private slots: void transientErrors(); void shutdownErrors(); void externalScript(); + void compositePropertyType(); void bug1(); @@ -1020,6 +1021,14 @@ void tst_qmlecmascript::externalScript() } } +void tst_qmlecmascript::compositePropertyType() +{ + QmlComponent component(&engine, TEST_FILE("compositePropertyType.qml")); + QTest::ignoreMessage(QtDebugMsg, "hello world"); + QObject *object = qobject_cast<QObject *>(component.create()); + delete object; +} + void tst_qmlecmascript::bug1() { QmlComponent component(&engine, TEST_FILE("bug.1.qml")); |