summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qicon_svg/tst_qicon_svg.cpp10
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