From 00ab92f4c6cd045904a0f26d7e2c227217758f02 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 25 Apr 2017 15:03:36 -0400 Subject: 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 Reviewed-by: Tom Sepez --- testing/resources/pixel/bug_714187.in | 68 +++++++++++++++++++++ .../resources/pixel/bug_714187_expected.pdf.0.png | Bin 0 -> 3558 bytes 2 files changed, 68 insertions(+) create mode 100644 testing/resources/pixel/bug_714187.in create mode 100644 testing/resources/pixel/bug_714187_expected.pdf.0.png (limited to 'testing/resources/pixel') 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 Binary files /dev/null and b/testing/resources/pixel/bug_714187_expected.pdf.0.png differ -- cgit v1.2.3