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.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
index d3f917e280..e023d705d9 100644
--- a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
+++ b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
@@ -738,6 +738,10 @@ void tst_QmlCppCodegen::asCast()
QCOMPARE(qvariant_cast<QObject *>(root->property("undefinedAsItem")), nullptr);
QCOMPARE(qvariant_cast<QObject *>(root->property("undefinedAsRectangle")), nullptr);
QCOMPARE(qvariant_cast<QObject *>(root->property("undefinedAsDummy")), nullptr);
+
+ QCOMPARE(root->property("stringAsString"), u"a"_s);
+ QCOMPARE(root->property("urlAsUrl"), QUrl(u"http://example.com"_s));
+ QCOMPARE(root->property("dateAsDate"), QDateTime(QDate(1996, 3, 3), QTime()));
}
void tst_QmlCppCodegen::attachedBaseEnum()