Add a pixel test for text forms with /MaxLen.

Show what currently happens when /MaxLen is set to 2, but /V has 5
digits.

Bug: chromium:1072440
Change-Id: Ia18103be268282abb243987a8a8ad23c478e1376
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/69010
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/testing/resources/pixel/bug_1072440.in b/testing/resources/pixel/bug_1072440.in
new file mode 100644
index 0000000..1ef4fd6
--- /dev/null
+++ b/testing/resources/pixel/bug_1072440.in
@@ -0,0 +1,39 @@
+{{header}}
+{{object 1 0}} <<
+  /Type /Catalog
+  /Pages 2 0 R
+  /AcroForm <<
+    /Fields [4 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 /Tx
+  /F 4
+  /Ff 8388608
+  /MaxLen 2
+  /P 3 0 R
+  /Rect [70 90 130 110]
+  /T (zip code)
+  /V (11111)
+>>
+endobj
+{{xref}}
+{{trailer}}
+{{startxref}}
+%%EOF
diff --git a/testing/resources/pixel/bug_1072440_expected.pdf.0.png b/testing/resources/pixel/bug_1072440_expected.pdf.0.png
new file mode 100644
index 0000000..0e96713
--- /dev/null
+++ b/testing/resources/pixel/bug_1072440_expected.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/bug_1072440_expected_mac.pdf.0.png b/testing/resources/pixel/bug_1072440_expected_mac.pdf.0.png
new file mode 100644
index 0000000..f36c581
--- /dev/null
+++ b/testing/resources/pixel/bug_1072440_expected_mac.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/bug_1072440_expected_win.pdf.0.png b/testing/resources/pixel/bug_1072440_expected_win.pdf.0.png
new file mode 100644
index 0000000..445648a
--- /dev/null
+++ b/testing/resources/pixel/bug_1072440_expected_win.pdf.0.png
Binary files differ