diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-02-13 16:47:22 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-02-13 16:47:22 -0800 |
commit | 7435e8e5c2f1163ec5eca79a3ac6c3920d490578 (patch) | |
tree | b5d4649d400914a10b5b1b9171089bda5e9f7731 /testing/resources/pixel | |
parent | 83c87e5fdb763f9b68c30c77f286b63258b2b811 (diff) | |
download | pdfium-7435e8e5c2f1163ec5eca79a3ac6c3920d490578.tar.xz |
Run pixel tests via automated script.
On origin/master, we only have .ppm format support, so the
expected output files would take up a lot of space. Hence,
this may not get going until XFA hits with its .png
support.
Nor is there a good way to diff these; XFA provides this
for .png as well.
But this will provide at least one automated test to ensure
that we've got non-blank output, at least for one trivially
simple case.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/926173002
Diffstat (limited to 'testing/resources/pixel')
-rw-r--r-- | testing/resources/pixel/font_size.in | 62 | ||||
-rw-r--r-- | testing/resources/pixel/font_size_expected.pdf.0.ppm | bin | 0 -> 120033 bytes |
2 files changed, 62 insertions, 0 deletions
diff --git a/testing/resources/pixel/font_size.in b/testing/resources/pixel/font_size.in new file mode 100644 index 0000000000..c4e21e2358 --- /dev/null +++ b/testing/resources/pixel/font_size.in @@ -0,0 +1,62 @@ +{{header}} +{{object 1 0}} << + /Type /Catalog + /Pages 2 0 R +>> +{{object 2 0}} << + /Type /Pages + /MediaBox [ 0 0 100 400 ] + /Count 1 + /Kids [ 3 0 R ] +>> +endobj +{{object 3 0}} << + /Type /Page + /Parent 2 0 R + /Resources << + /Font << + /F1 4 0 R + >> + >> + /Contents 6 0 R +>> +endobj +{{object 4 0}} << + /Type /Font + /Subtype /Type1 + /BaseFont /Times-Roman +>> +endobj +{{object 6 0}} << +>> +stream +BT +20 0 Td +0 20 Td /F1 0 Tf (Size 0) Tj +0 20 Td /F1 1 Tf (Size 1) Tj +0 20 Td /F1 2 Tf (Size 2) Tj +0 20 Td /F1 3 Tf (Size 3) Tj +0 20 Td /F1 4 Tf (Size 4) Tj +0 20 Td /F1 5 Tf (Size 5) Tj +0 20 Td /F1 6 Tf (Size 6) Tj +0 20 Td /F1 7 Tf (Size 7) Tj +0 20 Td /F1 8 Tf (Size 8) Tj +0 20 Td /F1 9 Tf (Size 9) Tj +0 20 Td /F1 10 Tf (Size 10) Tj +0 20 Td /F1 11 Tf (Size 11) Tj +0 20 Td /F1 12 Tf (Size 12) Tj +0 20 Td /F1 13 Tf (Size 13) Tj +0 20 Td /F1 14 Tf (Size 14) Tj +0 20 Td /F1 15 Tf (Size 15) Tj +0 20 Td /F1 16 Tf (Size 16) Tj +0 20 Td /F1 17 Tf (Size 17) Tj +0 20 Td /F1 18 Tf (Size 18) Tj +ET +endstream +endobj +{{xref}} +trailer << + /Root 1 0 R +>> +{{startxref}} +%%EOF diff --git a/testing/resources/pixel/font_size_expected.pdf.0.ppm b/testing/resources/pixel/font_size_expected.pdf.0.ppm Binary files differnew file mode 100644 index 0000000000..a433b39c44 --- /dev/null +++ b/testing/resources/pixel/font_size_expected.pdf.0.ppm |