diff options
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp')
| -rw-r--r-- | tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp index 6f2a8f4b51..ffd18f09a7 100644 --- a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp +++ b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp @@ -4890,23 +4890,17 @@ void tst_QmlCppCodegen::scopedEnum() QTest::ignoreMessage( QtWarningMsg, qPrintable(url + u":6:5: Unable to assign [undefined] to int"_s)); - QTest::ignoreMessage( - QtWarningMsg, - qPrintable(url + u":8: TypeError: Cannot read property 'C' of undefined"_s)); - QTest::ignoreMessage( - QtWarningMsg, - qPrintable(url + u":14: TypeError: Cannot read property 'C' of undefined"_s)); QScopedPointer<QObject> object(component.create()); QVERIFY(!object.isNull()); QCOMPARE(object->property("good").toInt(), 27); QCOMPARE(object->property("bad").toInt(), 0); - QCOMPARE(object->property("wrong").toInt(), 0); + QCOMPARE(object->property("noLongerWrong").toInt(), 7); QCOMPARE(object->property("right").toInt(), 7); QCOMPARE(object->property("notgood").toInt(), 26); QCOMPARE(object->property("notbad").toInt(), 26); - QCOMPARE(object->property("notwrong").toInt(), 0); + QCOMPARE(object->property("notwrongAnymore").toInt(), 6); QCOMPARE(object->property("notright").toInt(), 6); QCOMPARE(object->property("passable").toInt(), 2); |
