summaryrefslogtreecommitdiff
path: root/testing/resources/pixel
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-04-25 15:03:36 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-04-25 19:20:11 +0000
commit00ab92f4c6cd045904a0f26d7e2c227217758f02 (patch)
tree26837a1b73525ef5b0937154855393ea3ada5cde /testing/resources/pixel
parentd8fd936ebe64590e9c629eee6f4fbcff15adefd5 (diff)
downloadpdfium-00ab92f4c6cd045904a0f26d7e2c227217758f02.tar.xz
Add test for bug 714187
This CL adds a minimized test case for https://crbug.com/714187 in order to keep it from regressing in the future. Bug: chromium:714187 Change-Id: I913f380c85a57621424d82165393b1616c2f6a9a Reviewed-on: https://pdfium-review.googlesource.com/4491 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'testing/resources/pixel')
-rw-r--r--testing/resources/pixel/bug_714187.in68
-rw-r--r--testing/resources/pixel/bug_714187_expected.pdf.0.pngbin0 -> 3558 bytes
2 files changed, 68 insertions, 0 deletions
diff --git a/testing/resources/pixel/bug_714187.in b/testing/resources/pixel/bug_714187.in
new file mode 100644
index 0000000000..4ec2395b02
--- /dev/null
+++ b/testing/resources/pixel/bug_714187.in
@@ -0,0 +1,68 @@
+{{header}}
+
+{{object 2 0}} <<
+ /Type /Pages
+ /Rotate 90
+ /Kids [ 3 0 R ]
+ /Count 1
+>>
+endobj
+
+{{object 1 0}} <<
+ /Type /Catalog
+ /Pages 2 0 R
+>>
+endobj
+
+{{object 3 0}} <<
+ /Type /Page
+ /Parent 2 0 R
+ /Contents 4 0 R
+ /Resources <<
+ /XObject <<
+ /S5 5 0 R
+ >>
+ >>
+>>
+endobj
+
+{{object 4 0}} <<
+ /Length 187
+>>
+stream
+q
+0 1 -1 0 0 0 cm
+1 0 0 -1 0 0 cm
+0.072 0 0 0.072 0 0 cm
+1 0 0 0.9598603839 0 275 cm
+1.0 0 0 1.0 250 850 cm
+1.0 0 0 1.0 2283.515625 845.525 cm
+0.0005208333 0 0 -0.0005426136 0 0 cm
+/S5 Do
+Q
+
+endstream
+endobj
+
+{{object 5 0}} <<
+ /Type /XObject
+ /Subtype /Form
+ /FormType 1
+ /BBox [ 24320 -704128 524224 -121856 ]
+ /Length 68
+>>
+stream
+524213 -411346 m
+109719 -121914 24382 -263727 24382 -416322 c
+h
+f
+
+endstream
+endobj
+
+{{xref}}
+trailer <<
+ /Root 1 0 R
+>>
+{{startxref}}
+%%EOF
diff --git a/testing/resources/pixel/bug_714187_expected.pdf.0.png b/testing/resources/pixel/bug_714187_expected.pdf.0.png
new file mode 100644
index 0000000000..195dad2d71
--- /dev/null
+++ b/testing/resources/pixel/bug_714187_expected.pdf.0.png
Binary files differ