aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp')
-rw-r--r--tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
index 0c585183e1..822747f9cc 100644
--- a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
+++ b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
@@ -1173,6 +1173,13 @@ void tst_QmlCppCodegen::collectGarbageDuringAotCode()
QVERIFY(!o2.isNull());
QTRY_COMPARE_GT(o2->objectName().toInt(), 10);
+
+ QQmlComponent c3(&engine, QUrl(u"qrc:/qt/qml/TestTypes/markJSValue.qml"_s));
+ QVERIFY2(c3.isReady(), qPrintable(c3.errorString()));
+ QScopedPointer<QObject> o3(c3.create());
+ QVERIFY(!o3.isNull());
+
+ QTRY_COMPARE_GT(o3->property("count").toInt(), 10);
}
void tst_QmlCppCodegen::colorAsVariant()