summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-02-03 05:13:04 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-02-03 05:13:04 (GMT)
commit76f8d4eba12cd806270c145f908c96d4cd1c72cf (patch)
treee4ba6f0b6a9d028dd20e536ca4632ce6e301a34b /tests
parent9b87f36c31aa3f54cec7f61a65e9a070dbdc9985 (diff)
downloadQt-76f8d4eba12cd806270c145f908c96d4cd1c72cf.zip
Qt-76f8d4eba12cd806270c145f908c96d4cd1c72cf.tar.gz
Qt-76f8d4eba12cd806270c145f908c96d4cd1c72cf.tar.bz2
Test case for QTBUG-7860
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/qmllanguage/data/declaredPropertyValues.qml8
-rw-r--r--tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp8
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmllanguage/data/declaredPropertyValues.qml b/tests/auto/declarative/qmllanguage/data/declaredPropertyValues.qml
new file mode 100644
index 0000000..3987a3c
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/declaredPropertyValues.qml
@@ -0,0 +1,8 @@
+import Qt 4.6
+
+QtObject {
+ property int a: 10
+ property int b: 10 + a
+ property QtObject c: QtObject {}
+ property list<QtObject> d: [ QtObject {}, QtObject {} ]
+}
diff --git a/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp b/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
index a36e7b9..e9cebd8 100644
--- a/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
+++ b/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
@@ -110,6 +110,7 @@ private slots:
void onCompleted();
void scriptString();
void defaultPropertyListOrder();
+ void declaredPropertyValues();
void importsBuiltin_data();
void importsBuiltin();
@@ -1039,6 +1040,13 @@ void tst_qmllanguage::defaultPropertyListOrder()
QCOMPARE(container->children()->at(5)->property("index"), QVariant(5));
}
+void tst_qmllanguage::declaredPropertyValues()
+{
+ QmlComponent component(&engine, TEST_FILE("declaredPropertyValues.qml"));
+ QEXPECT_FAIL("", "QTBUG-7860", Abort);
+ VERIFY_ERRORS(0);
+}
+
// Check that first child of qml is of given type. Empty type insists on error.
void tst_qmllanguage::testType(const QString& qml, const QString& type)
{