summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-12 17:13:40 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-12 17:13:40 +0000
commit3f972932128af8dd040dd9d2bbaed4004fc4d617 (patch)
tree07bd18d46969ca59e00efc79c6bb14e8a033be50
parentde859c1493c39e3d2397a748054966d2ae985214 (diff)
downloadpdfium-3f972932128af8dd040dd9d2bbaed4004fc4d617.tar.xz
Add minimal pixel test for a rendering bug.
The test is suppressed because it currently renders incorrectly. BUG=pdfium:632 Change-Id: Ie780e2128ef3a0bcf5f7d57b164ae38f03b1e9fd Reviewed-on: https://pdfium-review.googlesource.com/c/43090 Reviewed-by: Nicolás Peña Moreno <npm@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
-rw-r--r--testing/SUPPRESSIONS3
-rw-r--r--testing/resources/pixel/bug_632.in78
-rw-r--r--testing/resources/pixel/bug_632_expected.pdf.0.pngbin0 -> 142 bytes
3 files changed, 81 insertions, 0 deletions
diff --git a/testing/SUPPRESSIONS b/testing/SUPPRESSIONS
index 4720505529..fe49416916 100644
--- a/testing/SUPPRESSIONS
+++ b/testing/SUPPRESSIONS
@@ -325,6 +325,9 @@ resolve_nodes_1.pdf * * *
#
bug_492.in * nov8 *
+# TODO(pdfium:632): Remove after associated bug is fixed
+bug_632.in * * *
+
# xfa_specific
# TODO(pdfium:1107): Remove after associated bug is fixed
diff --git a/testing/resources/pixel/bug_632.in b/testing/resources/pixel/bug_632.in
new file mode 100644
index 0000000000..bba7a42473
--- /dev/null
+++ b/testing/resources/pixel/bug_632.in
@@ -0,0 +1,78 @@
+{{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
+ /MediaBox [0 0 300 200]
+ /Resources <<
+ /Font << /F1 6 0 R >>
+ /Pattern << /P1 7 0 R >>
+ /ProcSet [/PDF /Text /ImageC /ImageI /ImageB]
+ >>
+>>
+endobj
+{{object 4 0}} <<
+ {{streamlen}}
+>>
+stream
+1 0 0 1 200 0 cm
+0 0 300 200 re
+W
+n
+/Pattern cs
+/P1 scn
+BT
+/F1 16 Tf
+1 0 0 1 -100 100 Tm
+(Hello, world!) Tj
+ET
+endstream
+endobj
+{{object 6 0}} <<
+ /Type /Font
+ /Subtype /Type1
+ /BaseFont /Helvetica
+>>
+endobj
+{{object 7 0}} <<
+ /Type /Pattern
+ /PatternType 2
+ /Shading 8 0 R
+>>
+endobj
+{{object 8 0}} <<
+ /ShadingType 2
+ /ColorSpace /DeviceCMYK
+ /Coords [0.0 0.0 1.0 0.0]
+ /Function 9 0 R
+ /Extend [true true]
+>>
+endobj
+{{object 9 0}} <<
+ /FunctionType 0
+ /Domain [0.0 1.0]
+ /Range [0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0]
+ /Size [2]
+ /BitsPerSample 1
+ /Filter /ASCIIHexDecode
+ {{streamlen}}
+>>
+stream
+ff
+endstream
+endobj
+{{xref}}
+{{trailer}}
+{{startxref}}
+%%EOF
diff --git a/testing/resources/pixel/bug_632_expected.pdf.0.png b/testing/resources/pixel/bug_632_expected.pdf.0.png
new file mode 100644
index 0000000000..3807d93301
--- /dev/null
+++ b/testing/resources/pixel/bug_632_expected.pdf.0.png
Binary files differ