summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/json/tst_qtjson.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/corelib/json/tst_qtjson.cpp b/tests/auto/corelib/json/tst_qtjson.cpp
index bdf8c86442..94e6e1129e 100644
--- a/tests/auto/corelib/json/tst_qtjson.cpp
+++ b/tests/auto/corelib/json/tst_qtjson.cpp
@@ -1062,6 +1062,8 @@ void tst_QtJson::fromVariantMap()
void tst_QtJson::toVariantMap()
{
+ QCOMPARE(QMetaType::Type(QJsonValue(QJsonObject()).toVariant().type()), QMetaType::QVariantMap); // QTBUG-32524
+
QJsonObject object;
QVariantMap map = object.toVariantMap();
QVERIFY(map.isEmpty());
@@ -1091,6 +1093,8 @@ void tst_QtJson::toVariantMap()
void tst_QtJson::toVariantList()
{
+ QCOMPARE(QMetaType::Type(QJsonValue(QJsonArray()).toVariant().type()), QMetaType::QVariantList); // QTBUG-32524
+
QJsonArray array;
QVariantList list = array.toVariantList();
QVERIFY(list.isEmpty());