From 7435e8e5c2f1163ec5eca79a3ac6c3920d490578 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 13 Feb 2015 16:47:22 -0800 Subject: 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 --- testing/resources/pixel/font_size.in | 62 +++++++++++++++++++++ .../resources/pixel/font_size_expected.pdf.0.ppm | Bin 0 -> 120033 bytes 2 files changed, 62 insertions(+) create mode 100644 testing/resources/pixel/font_size.in create mode 100644 testing/resources/pixel/font_size_expected.pdf.0.ppm (limited to 'testing/resources') 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 new file mode 100644 index 0000000000..a433b39c44 Binary files /dev/null and b/testing/resources/pixel/font_size_expected.pdf.0.ppm differ -- cgit v1.2.3