summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2021-03-19 20:49:50 +0900
committerTomaž Vajngerl <quikee@gmail.com>2021-03-19 16:25:43 +0100
commit26d2356f64dc24b654f4afdb7d4b701d0a09e1e8 (patch)
treec850e880786ec672732eb12ad319b2ed514d5155
parent6aee002aa3094ebaa863e79ff3c3b1c6f5ef3c76 (diff)
vcl: add interlaced test case for PngImageReader
Change-Id: I17f3a2b96756bba3316f30541ef6961fabc339b5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112740 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
-rw-r--r--vcl/qa/cppunit/png/PngFilterTest.cxx10
-rw-r--r--vcl/qa/cppunit/png/data/color-rect-8bit-RGB-interlaced.pngbin0 -> 92 bytes
2 files changed, 8 insertions, 2 deletions
diff --git a/vcl/qa/cppunit/png/PngFilterTest.cxx b/vcl/qa/cppunit/png/PngFilterTest.cxx
index 3b02e1135504..c167c4c9c636 100644
--- a/vcl/qa/cppunit/png/PngFilterTest.cxx
+++ b/vcl/qa/cppunit/png/PngFilterTest.cxx
@@ -97,8 +97,14 @@ void PngFilterTest::testPng()
}
}
}
- for (const OUString& aFileName :
- { OUString("color-rect-8bit-RGB.png"), OUString("color-rect-4bit-pal.png") })
+
+ OUString aFilenames[] = {
+ OUString("color-rect-8bit-RGB.png"),
+ OUString("color-rect-8bit-RGB-interlaced.png"),
+ OUString("color-rect-4bit-pal.png"),
+ };
+
+ for (const OUString& aFileName : aFilenames)
{
SvFileStream aFileStream(getFullUrl(aFileName), StreamMode::READ);
diff --git a/vcl/qa/cppunit/png/data/color-rect-8bit-RGB-interlaced.png b/vcl/qa/cppunit/png/data/color-rect-8bit-RGB-interlaced.png
new file mode 100644
index 000000000000..17ca9a350d9c
--- /dev/null
+++ b/vcl/qa/cppunit/png/data/color-rect-8bit-RGB-interlaced.png
Binary files differ