diff options
author | Liang Qi <liang.qi@qt.io> | 2018-01-20 22:45:27 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2018-01-20 22:46:02 +0100 |
commit | 4366fe95477f96489f9a7a99df96230f0ac72112 (patch) | |
tree | 11f27fe83fca4805c89fe9c465cefb664290ae51 /tests/auto/qicon_svg | |
parent | 8c8ca4a03a701b046990f9023487888d96d113e2 (diff) | |
parent | 275bd8a4a76256e889cad1ea88c4b5d3acb9ad8f (diff) | |
download | qtsvg-4366fe95477f96489f9a7a99df96230f0ac72112.tar.gz |
Merge remote-tracking branch 'origin/5.10' into dev
Conflicts:
.qmake.conf
Change-Id: I2d1692e18205aa86e7181d907eac21dc096744ae
Diffstat (limited to 'tests/auto/qicon_svg')
-rw-r--r-- | tests/auto/qicon_svg/tst_qicon_svg.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/qicon_svg/tst_qicon_svg.cpp b/tests/auto/qicon_svg/tst_qicon_svg.cpp index 170ec37..0875ee1 100644 --- a/tests/auto/qicon_svg/tst_qicon_svg.cpp +++ b/tests/auto/qicon_svg/tst_qicon_svg.cpp @@ -152,6 +152,16 @@ void tst_QIcon_Svg::isNull() //valid svg, we're not null QIcon icon(prefix + "heart.svg"); QVERIFY(!icon.isNull()); + + // check for non null of serialized/deserialized valid icon + QByteArray buf; + QDataStream out(&buf, QIODevice::WriteOnly); + out << icon; + + QIcon icon2; + QDataStream in(buf); + in >> icon2; + QVERIFY(!icon2.isNull()); } { //invalid svg, but a pixmap added means we're not null |