summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-09-03 01:56:42 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-09-03 02:03:36 (GMT)
commitd758910f3d8d5eb64f7c7d94e5c9ef9ae259230b (patch)
treeda7a6c36f2425aa28136c24f9b1935d6079d2af5 /tests/auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp
parente0d41e566c49532dba6ed7eeb6a826f80e11c119 (diff)
downloadQt-d758910f3d8d5eb64f7c7d94e5c9ef9ae259230b.zip
Qt-d758910f3d8d5eb64f7c7d94e5c9ef9ae259230b.tar.gz
Qt-d758910f3d8d5eb64f7c7d94e5c9ef9ae259230b.tar.bz2
Don't modify the signal order on the second dynamic meta object pass
QTBUG-13374
Diffstat (limited to 'tests/auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp')
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp b/tests/auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp
index dc00e16..1825991 100644
--- a/tests/auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp
+++ b/tests/auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp
@@ -118,6 +118,7 @@ private slots:
void valueTypes();
void cppnamespace();
void aliasProperties();
+ void aliasPropertiesAndSignals();
void componentCompositeType();
void i18n();
void i18n_data();
@@ -1051,6 +1052,17 @@ void tst_qdeclarativelanguage::aliasProperties()
}
}
+// QTBUG-13374 Test that alias properties and signals can coexist
+void tst_qdeclarativelanguage::aliasPropertiesAndSignals()
+{
+ QDeclarativeComponent component(&engine, TEST_FILE("aliasPropertiesAndSignals.qml"));
+ VERIFY_ERRORS(0);
+ QObject *o = component.create();
+ QVERIFY(o);
+ QCOMPARE(o->property("test").toBool(), true);
+ delete o;
+}
+
// Test that the root element in a composite type can be a Component
void tst_qdeclarativelanguage::componentCompositeType()
{