diff options
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp')
| -rw-r--r-- | tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp index 884372bfa4..016d4c95a0 100644 --- a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp +++ b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp @@ -6126,6 +6126,12 @@ void tst_QmlCppCodegen::variantMapLookup() QVERIFY(!o.isNull()); QCOMPARE(o->property("i"), 42); QCOMPARE(o->property("j"), 42); + QCOMPARE(o->property("foo"), u"blue"_s); + + QMetaObject::invokeMethod(o.data(), "doI"); + QCOMPARE(o->property("i"), 43); + QCOMPARE(o->property("j"), 43); + QCOMPARE(o->property("foo"), u"blue"_s); } void tst_QmlCppCodegen::variantReturn() |
