diff options
author | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-05-18 03:02:09 +0200 |
---|---|---|
committer | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-05-18 03:02:09 +0200 |
commit | cbb8fc1ae374e2b25c733e3f15109fb407e0cf95 (patch) | |
tree | 5d0d95f78f789c58c2a2eefadd681bbdf531a4db /tests | |
parent | 11c8706b6c0ca3f9c0d195641fd0eea816899acd (diff) | |
parent | 1466130070922a6cc55c2a5b724311780a394a13 (diff) | |
download | qtwebchannel-cbb8fc1ae374e2b25c733e3f15109fb407e0cf95.tar.gz |
Merge remote-tracking branch 'origin/5.12' into 5.13
Change-Id: I182d51367aed4518f5bbc247e4e517af09028f7a
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/webchannel/tst_webchannel.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/webchannel/tst_webchannel.cpp b/tests/auto/webchannel/tst_webchannel.cpp index 9a0f575..133655d 100644 --- a/tests/auto/webchannel/tst_webchannel.cpp +++ b/tests/auto/webchannel/tst_webchannel.cpp @@ -797,6 +797,13 @@ void TestWebChannel::testWrapValues() QVERIFY(value.isDouble()); QCOMPARE(value.toInt(), (int) flags); } + { + QVector<int> vec{1, 2, 3}; + QVariant variant = QVariant::fromValue(vec); + QJsonValue value = channel.d_func()->publisher->wrapResult(variant, m_dummyTransport); + QVERIFY(value.isArray()); + QCOMPARE(value.toArray(), QJsonArray({1, 2, 3})); + } } void TestWebChannel::testWrapObjectWithMultipleTransports() |