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>
diff --git a/testing/SUPPRESSIONS b/testing/SUPPRESSIONS
index 7b0b64f..6cd0fc7 100644
--- a/testing/SUPPRESSIONS
+++ b/testing/SUPPRESSIONS
@@ -340,6 +340,9 @@
# 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 0000000..503fa2a
--- /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
new file mode 100644
index 0000000..d8c8148
--- /dev/null
+++ b/testing/resources/pixel/bug_237527_1_expected.pdf.0.png
Binary files differ
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
new file mode 100644
index 0000000..eef577e
--- /dev/null
+++ b/testing/resources/pixel/bug_237527_1_expected_skia.pdf.0.png
Binary files differ