diff options
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp')
| -rw-r--r-- | tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp | 7 |
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 e970679c51..d4dc441a0e 100644 --- a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp +++ b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp @@ -1165,6 +1165,13 @@ void tst_QmlCppCodegen::collectGarbageDuringAotCode() QCOMPARE(inner->objectName(), u"dynamic"_s); QCOMPARE(o->property("gcRun").toInt(), 1); + + QQmlComponent c2(&engine, QUrl(u"qrc:/qt/qml/TestTypes/markRecursive.qml"_s)); + QVERIFY2(c2.isReady(), qPrintable(c2.errorString())); + QScopedPointer<QObject> o2(c2.create()); + QVERIFY(!o2.isNull()); + + QTRY_COMPARE_GT(o2->objectName().toInt(), 10); } void tst_QmlCppCodegen::colorAsVariant() |
