Add test case for bug 981347
Second test that passes at Tot but fails at 73bd37c8.
Bug: chromium:981347
Change-Id: I9aaba1f485018f6001aafa72eb9f6cc4817c2180
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/57357
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/testing/resources/pixel/bug_981347.in b/testing/resources/pixel/bug_981347.in
new file mode 100644
index 0000000..843768a
--- /dev/null
+++ b/testing/resources/pixel/bug_981347.in
@@ -0,0 +1,66 @@
+{{header}}
+{{object 1 0}} <<
+ /Type /Catalog
+ /Pages 2 0 R
+>>
+endobj
+{{object 2 0}} <<
+ /Type /Pages
+ /Count 1
+ /Kids [3 0 R]
+>>
+endobj
+{{object 3 0}} <<
+ /Type /Page
+ /Parent 2 0 R
+ /Contents [ 4 0 R ]
+ /Resources <<
+ /ColorSpace <<
+ /Cs1P [ /Pattern 5 0 R ]
+ >>
+ /Pattern <<
+ /Pt1 6 0 R
+ >>
+ >>
+>>
+endobj
+{{object 4 0}} <<
+ {{streamlen}}
+>>
+stream
+/Cs1P cs
+/Pt1 scn
+endstream
+endobj
+{{object 5 0}} [
+ /DeviceN
+ [ /Black ]
+ /DeviceCMYK
+ 7 0 R
+]
+endobj
+{{object 6 0}} <<
+ /Type /Pattern
+ /PaintType 1
+ /PatternType 1
+ {{streamlen}}
+>>
+stream
+endstream
+endobj
+{{object 7 0}} <<
+ /FunctionType 4
+ /Domain [ 0 1 ]
+ /Range [ 0 1 0 1 0 1 0 1 ]
+ {{streamlen}}
+>>
+stream
+{
+0 %c
+}
+endstream
+endobj
+{{xref}}
+{{trailer}}
+{{startxref}}
+%%EOF
diff --git a/testing/resources/pixel/bug_981347_expected.pdf.0.png b/testing/resources/pixel/bug_981347_expected.pdf.0.png
new file mode 100644
index 0000000..08c11b0
--- /dev/null
+++ b/testing/resources/pixel/bug_981347_expected.pdf.0.png
Binary files differ