tst_QImageReader: Fix the size of the SVG images

The image appears to be 128x128. Fixes test failures

FAIL!  : tst_QImageReader::readFromResources(rect.svg) Compared values are not the same
   Actual   (image.size()): QSize(128x128)
   Expected (size)        : QSize(105x137)
.\tst_qimagereader.cpp(1493) : failure location
FAIL!  : tst_QImageReader::readFromResources(rect.svgz) Compared values are not the same
   Actual   (image.size()): QSize(128x128)
   Expected (size)        : QSize(105x137)

which likely do not show in the CI since the qtsvg module is not
available when checking only qtbase.

Change-Id: I84ebdde6f2251f56a00f16a54bd20d0c2b23638e
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
bb10
Friedemann Kleint 2017-08-02 11:03:55 +02:00
parent a96656a8fb
commit 245d83bb50
1 changed files with 2 additions and 2 deletions

View File

@ -1386,10 +1386,10 @@ void tst_QImageReader::readFromResources_data()
<< QByteArray("jpg") << QSize(240, 180)
<< QString("");
QTest::newRow("rect.svg") << QString("rect.svg")
<< QByteArray("svg") << QSize(105, 137)
<< QByteArray("svg") << QSize(128, 128)
<< QString("");
QTest::newRow("rect.svgz") << QString("rect.svgz")
<< QByteArray("svgz") << QSize(105, 137)
<< QByteArray("svgz") << QSize(128, 128)
<< QString("");
QTest::newRow("corrupt.svg") << QString("corrupt.svg")
<< QByteArray("svg") << QSize(0, 0)