diff options
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp')
| -rw-r--r-- | tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp index 83a31b3f1c..61999b5eec 100644 --- a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp +++ b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp @@ -188,6 +188,7 @@ private slots: void multiLookup(); void multipleCtors(); void namespaceWithEnum(); + void noBuiltinsImport(); void noQQmlData(); void nonNotifyable(); void notEqualsInt(); @@ -3722,6 +3723,17 @@ void tst_QmlCppCodegen::namespaceWithEnum() QCOMPARE(o->property("i").toInt(), 2); } +void tst_QmlCppCodegen::noBuiltinsImport() +{ + QQmlEngine engine; + QQmlComponent c(&engine, QUrl(u"qrc:/qt/qml/TestTypes/noBuiltinsImport.qml"_s)); + QVERIFY2(c.isReady(), qPrintable(c.errorString())); + QScopedPointer<QObject> o(c.create()); + QVERIFY(!o.isNull()); + + QCOMPARE(o->property("textureSize").value<QSizeF>(), QSizeF(1024, 1024)); +} + void tst_QmlCppCodegen::noQQmlData() { QQmlEngine engine; |
