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.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
index 7bbaa0ec19..0ca624134e 100644
--- a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
+++ b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
@@ -260,6 +260,7 @@ private slots:
void typePropagationLoop();
void typePropertyClash();
void typedArray();
+ void unclearComponentBoundaries();
void undefinedResets();
void undefinedToDouble();
void unknownAttached();
@@ -5318,6 +5319,19 @@ void tst_QmlCppCodegen::typedArray()
QCOMPARE(result, 20);
}
+void tst_QmlCppCodegen::unclearComponentBoundaries()
+{
+ QQmlEngine engine;
+ QQmlComponent component(
+ &engine, QUrl(u"qrc:/qt/qml/TestTypes/unclearComponentBoundaries.qml"_s));
+
+ QVERIFY2(component.isReady(), qPrintable(component.errorString()));
+ QScopedPointer<QObject> rootObject(component.create());
+ QVERIFY(rootObject);
+
+ QCOMPARE(rootObject->objectName(), u"outer"_s);
+}
+
void tst_QmlCppCodegen::undefinedResets()
{
QQmlEngine engine;