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 b5a146ad12..9b67793ce6 100644 --- a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp +++ b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp @@ -2482,6 +2482,12 @@ void tst_QmlCppCodegen::badSequence() other->setCousins(cousins); QCOMPARE(self->cousins(), cousins); QCOMPARE(self->property("m").toInt(), 2); + + QQmlListProperty<Person> others + = self->property("others").value<QQmlListProperty<Person>>(); + QCOMPARE(others.count(&others), 2); + QCOMPARE(others.at(&others, 0), cousins[0]); + QCOMPARE(others.at(&others, 1), cousins[1]); } void tst_QmlCppCodegen::enumLookup() |
