summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/image/qpixmap
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/gui/image/qpixmap')
-rw-r--r--tests/auto/gui/image/qpixmap/tst_qpixmap.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/gui/image/qpixmap/tst_qpixmap.cpp b/tests/auto/gui/image/qpixmap/tst_qpixmap.cpp
index dce6c3dbae..b9b61425da 100644
--- a/tests/auto/gui/image/qpixmap/tst_qpixmap.cpp
+++ b/tests/auto/gui/image/qpixmap/tst_qpixmap.cpp
@@ -167,6 +167,7 @@ private slots:
void loadAsBitmapOrPixmap();
void scaled_QTBUG19157();
+ void detachOnLoad_QTBUG29639();
};
static bool lenientCompare(const QPixmap &actual, const QPixmap &expected)
@@ -1511,5 +1512,19 @@ void tst_QPixmap::scaled_QTBUG19157()
QVERIFY(!foo.isNull());
}
+void tst_QPixmap::detachOnLoad_QTBUG29639()
+{
+ const QString prefix = QFINDTESTDATA("convertFromImage");
+
+ QPixmap a;
+ a.load(prefix + "/task31722_0/img1.png");
+ a.load(prefix + "/task31722_0/img2.png");
+
+ QPixmap b;
+ b.load(prefix + "/task31722_0/img1.png");
+
+ QVERIFY(a.toImage() != b.toImage());
+}
+
QTEST_MAIN(tst_QPixmap)
#include "tst_qpixmap.moc"