Add a pixel test for JPEG 2000 image decoding. Try to draw 4 JPEG 2000 images into the quadrants of a page. The 4 images are all full of red pixels. They differ in the following 2 attributes, and combine to test all combinations of these 2 attributes: 1) Whether the image is JP2 or J2K. 2) Whether the image dictionary has a /ColorSpace entry. Suppress the test results since the test does not pass yet. BUG=pdfium:304 Change-Id: I9b536cb32b4f1bff7537332501c75134c30b7162 Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/56532 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/testing/SUPPRESSIONS b/testing/SUPPRESSIONS index 2edbaa8..dedfbbd 100644 --- a/testing/SUPPRESSIONS +++ b/testing/SUPPRESSIONS
@@ -325,6 +325,9 @@ # bug_492.in * nov8 * +# TODO(pdfium:304): Remove after associated bug is fixed +bug_304.in * * * + # TODO(pdfium:632): Remove after associated bug is fixed bug_632.in * * *
diff --git a/testing/resources/pixel/bug_304.in b/testing/resources/pixel/bug_304.in new file mode 100644 index 0000000..9580579 --- /dev/null +++ b/testing/resources/pixel/bug_304.in Binary files differ
diff --git a/testing/resources/pixel/bug_304_expected.pdf.0.png b/testing/resources/pixel/bug_304_expected.pdf.0.png new file mode 100644 index 0000000..e1b3d43 --- /dev/null +++ b/testing/resources/pixel/bug_304_expected.pdf.0.png Binary files differ