diff options
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp index 53d068c855..c6d73dabb0 100644 --- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp +++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp @@ -10452,9 +10452,15 @@ void tst_qqmlecmascript::assignListPropertyByIndexOnGadget() QVERIFY(object); QStringList expected{ "Completely new Element", "Element2", "Element3" }; + QVariantList variants { + u"Completely new Element"_s, + u"foo"_s, + QVariant::fromValue<std::nullptr_t>(nullptr), + QVariant::fromValue<bool>(true) + }; - QEXPECT_FAIL("", "Assigning to an index of a list property on a gadget doesn't work.", Continue); QCOMPARE(gadget.gadgetStringList(), expected); + QCOMPARE(gadget.gadgetVariantList(), variants); QCOMPARE(object->qobjectStringList(), expected); } |