[Libreoffice-commits] core.git: vcl/qa
Tomaž Vajngerl (via logerrit)
logerrit at kemper.freedesktop.org
Fri Mar 19 15:26:23 UTC 2021
vcl/qa/cppunit/png/PngFilterTest.cxx | 10 ++++++++--
vcl/qa/cppunit/png/data/color-rect-8bit-RGB-interlaced.png |binary
2 files changed, 8 insertions(+), 2 deletions(-)
New commits:
commit 26d2356f64dc24b654f4afdb7d4b701d0a09e1e8
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Fri Mar 19 20:49:50 2021 +0900
Commit: Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Fri Mar 19 16:25:43 2021 +0100
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 at gmail.com>
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
Binary files /dev/null and b/vcl/qa/cppunit/png/data/color-rect-8bit-RGB-interlaced.png differ
More information about the Libreoffice-commits
mailing list