From 76f8d4eba12cd806270c145f908c96d4cd1c72cf Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Wed, 3 Feb 2010 15:13:04 +1000 Subject: Test case for QTBUG-7860 --- .../auto/declarative/qmllanguage/data/declaredPropertyValues.qml | 8 ++++++++ tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/auto/declarative/qmllanguage/data/declaredPropertyValues.qml 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 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) { -- cgit v0.12