aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2023-01-06 13:38:08 +0100
committerUlf Hermann <ulf.hermann@qt.io>2023-01-16 23:03:57 +0000
commite070b5aa391bb706cad93b69aa575a0f2e0d23ad (patch)
tree4781c62e79eeec06826262064b896382ac944507 /tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
parent4b7566ade282694c1903a10867a1612cb04630dd (diff)
Allow extraction of V4 values from QJSPrimitiveValue
Since we can produce QJSPrimitiveValue in metaTypeFromJS, we should also handle the other direction. Fixes: QTBUG-109867 Pick-to: 6.5 Change-Id: I2c7598d19eba3e78d071ca3eceb32deda4d0ead8 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp')
-rw-r--r--tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
index b43194cd93..65e882a089 100644
--- a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
+++ b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
@@ -3062,6 +3062,11 @@ void tst_QmlCppCodegen::equalityVarAndNonStorable()
QVERIFY(!object->property("typedArrayIsNull").toBool());
QVERIFY(object->property("isUndefined").toBool());
QVERIFY(!object->property("derivedIsNull").toBool());
+
+ QVERIFY(object->property("primitiveIsNull").toBool());
+ QVERIFY(object->property("primitiveIsDefined").toBool());
+ QVERIFY(object->property("primitiveIsUndefined").toBool());
+
QVERIFY(object->property("jsValueIsNull").toBool());
QVERIFY(object->property("jsValueIsDefined").toBool());
QVERIFY(object->property("jsValueIsUndefined").toBool());