aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/v4/tst_v4.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/v4/tst_v4.cpp')
-rw-r--r--tests/auto/declarative/v4/tst_v4.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/declarative/v4/tst_v4.cpp b/tests/auto/declarative/v4/tst_v4.cpp
index 20d739f4b5..69fa4bbf0c 100644
--- a/tests/auto/declarative/v4/tst_v4.cpp
+++ b/tests/auto/declarative/v4/tst_v4.cpp
@@ -78,6 +78,7 @@ private slots:
void nestedObjectAccess();
void subscriptionsInConditionalExpressions();
void qtbug_21883();
+ void qtbug_22816();
private:
QDeclarativeEngine engine;
@@ -253,6 +254,17 @@ void tst_v4::qtbug_21883()
delete o;
}
+void tst_v4::qtbug_22816()
+{
+ QDeclarativeComponent component(&engine, TEST_FILE("qtbug_22816.qml"));
+
+ QObject *o = component.create();
+ QVERIFY(o != 0);
+ QCOMPARE(o->property("test1").toBool(), false);
+ QCOMPARE(o->property("test2").toBool(), false);
+ delete o;
+}
+
QTEST_MAIN(tst_v4)
#include "tst_v4.moc"