From 0f6dbb14ede58ebe86c1042dab5a0f086635770f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20R=C3=B8dal?= Date: Fri, 17 Sep 2010 12:19:01 +0200 Subject: Added autotest for QPixmap::size() with null pixmaps. For change 82575a9f6123eed3e858 which fixed a behavioural regression. Reviewed-by: Olivier Goffart --- tests/auto/qpixmap/tst_qpixmap.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/auto/qpixmap/tst_qpixmap.cpp b/tests/auto/qpixmap/tst_qpixmap.cpp index 7e0f466..8005ec5 100644 --- a/tests/auto/qpixmap/tst_qpixmap.cpp +++ b/tests/auto/qpixmap/tst_qpixmap.cpp @@ -742,6 +742,11 @@ void tst_QPixmap::testMetrics() QCOMPARE(bitmap.width(), 100); QCOMPARE(bitmap.height(), 100); QCOMPARE(bitmap.depth(), 1); + + QPixmap null; + + QCOMPARE(null.size().width(), null.width()); + QCOMPARE(null.size().height(), null.height()); } void tst_QPixmap::createMaskFromColor() -- cgit v0.12