diff options
| author | Hui Yingst <nigi@chromium.org> | 2020-09-30 00:26:43 +0000 |
|---|---|---|
| committer | Chromium commit bot <commit-bot@chromium.org> | 2020-09-30 00:26:43 +0000 |
| commit | bbb165ec095cedfa63911996ef5cf097ecec6155 (patch) | |
| tree | fd4fb07fa769be584b762c90899632bbe2e51ec2 | |
| parent | ecb8d87df55c519697bb9e164c22a93a397dcae0 (diff) | |
| download | platform_external_pdfium-bbb165ec095cedfa63911996ef5cf097ecec6155.tar.gz platform_external_pdfium-bbb165ec095cedfa63911996ef5cf097ecec6155.tar.bz2 platform_external_pdfium-bbb165ec095cedfa63911996ef5cf097ecec6155.zip | |
Add a pixel test for a link annotation that does not render.
Add a pixel test which contains a link type annotation, which has a
"Border" entry but doesn't have a "BS" (border style) entry. This test
is to ensure the border box for the annotation is rendered correctly.
Bug: chromium:237527
Change-Id: I84c6a1b8694357d470245fca907e0f1338e21905
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/74190
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Hui Yingst <nigi@chromium.org>
| -rw-r--r-- | testing/SUPPRESSIONS | 3 | ||||
| -rw-r--r-- | testing/resources/pixel/bug_237527_1.in | 37 | ||||
| -rw-r--r-- | testing/resources/pixel/bug_237527_1_expected.pdf.0.png | bin | 0 -> 157 bytes | |||
| -rw-r--r-- | testing/resources/pixel/bug_237527_1_expected_skia.pdf.0.png | bin | 0 -> 209 bytes |
4 files changed, 40 insertions, 0 deletions
diff --git a/testing/SUPPRESSIONS b/testing/SUPPRESSIONS index 7b0b64fe5..6cd0fc762 100644 --- a/testing/SUPPRESSIONS +++ b/testing/SUPPRESSIONS @@ -340,6 +340,9 @@ bug_1519.in * * * # TODO(pdfium:1571): Remove after associated bug is fixed bug_1571.in * * * +# TODO(chromium:237527): Remove after associated bug is fixed +bug_237527_1.in * * * + # TODO(chromium:451366): Remove after associated bug is fixed bug_451366.in * * * diff --git a/testing/resources/pixel/bug_237527_1.in b/testing/resources/pixel/bug_237527_1.in new file mode 100644 index 000000000..503fa2aec --- /dev/null +++ b/testing/resources/pixel/bug_237527_1.in @@ -0,0 +1,37 @@ +{{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 + /Annots [4 0 R] + /MediaBox [0 0 300 300] +>> +endobj +{{object 4 0}} << + /Type /Annot + /Subtype /Link + /A << + /Type /Action + /S /URI + /URI (www.google.com) + >> + /Border [0 0 1] + /C [0 1 1] + /H /I + /Rect [100 100 200 120] +>> +endobj +{{xref}} +{{trailer}} +{{startxref}} +%%EOF diff --git a/testing/resources/pixel/bug_237527_1_expected.pdf.0.png b/testing/resources/pixel/bug_237527_1_expected.pdf.0.png Binary files differnew file mode 100644 index 000000000..d8c814824 --- /dev/null +++ b/testing/resources/pixel/bug_237527_1_expected.pdf.0.png diff --git a/testing/resources/pixel/bug_237527_1_expected_skia.pdf.0.png b/testing/resources/pixel/bug_237527_1_expected_skia.pdf.0.png Binary files differnew file mode 100644 index 000000000..eef577ef2 --- /dev/null +++ b/testing/resources/pixel/bug_237527_1_expected_skia.pdf.0.png |
