Add pixel test for PDF with /NeedAppearances true

Add a test case that renders as all green in Acrobat Reader. Since
PDFium currently renders the PDF all white, suppress the test failure.

Bug: 394767650
Change-Id: I59f65dbe692eff2872aaad2607c279fa5a9bc282
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/128590
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Thomas Sepez <tsepez@google.com>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
diff --git a/testing/SUPPRESSIONS b/testing/SUPPRESSIONS
index 7c837b1..aa1db92 100644
--- a/testing/SUPPRESSIONS
+++ b/testing/SUPPRESSIONS
@@ -665,6 +665,9 @@
 # TODO(crbug.com/346766787): Remove after associated bug is fixed
 bug_346766787.in * * * *
 
+# TODO(crbug.com/394767650): Remove after associated bug is fixed
+bug_394767650.in * * * *
+
 # TODO(chromium:451366): Remove after associated bug is fixed
 bug_451366.in * * * agg
 
diff --git a/testing/resources/pixel/bug_394767650.in b/testing/resources/pixel/bug_394767650.in
new file mode 100644
index 0000000..2fc0b59
--- /dev/null
+++ b/testing/resources/pixel/bug_394767650.in
@@ -0,0 +1,54 @@
+{{header}}
+{{object 1 0}} <<
+  /Type /Catalog
+  /AcroForm <<
+    /Fields [4 0 R]
+    /NeedAppearances true
+  >>
+  /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 200 200]
+>>
+endobj
+{{object 4 0}} <<
+  /Type /Annot
+  /Subtype /Widget
+  /FT /Btn
+  /AP <<
+    /N 5 0 R
+  >>
+  /F 4
+  /Ff 65536
+  /Rect [0 0 200 200]
+  /TU (Click)
+  /T (Click)
+>>
+endobj
+{{object 5 0}} <<
+  /Type /XObject
+  /Subtype /Form
+  /FormType 1
+  /BBox [0 0 200 200]
+  {{streamlen}}
+>>
+stream
+0 1 0 rg
+0 0 200 200 re f
+ET
+endstream
+endobj
+{{xref}}
+{{trailer}}
+{{startxref}}
+%%EOF
diff --git a/testing/resources/pixel/bug_394767650_expected.pdf.0.png b/testing/resources/pixel/bug_394767650_expected.pdf.0.png
new file mode 100644
index 0000000..e315241
--- /dev/null
+++ b/testing/resources/pixel/bug_394767650_expected.pdf.0.png
Binary files differ