Add a test case that exercises DrawCosmeticLine().

BUG=pdfium:1296

Change-Id: Iac64dcae92266d15838298d0f638ce462853ab0e
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/54431
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/testing/resources/pixel/bug_1296.in b/testing/resources/pixel/bug_1296.in
new file mode 100644
index 0000000..4c768dd
--- /dev/null
+++ b/testing/resources/pixel/bug_1296.in
@@ -0,0 +1,43 @@
+{{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
+  /Contents 4 0 R
+  /MediaBox [0 0 612 792]
+>>
+endobj
+{{object 4 0}} <<
+  {{streamlen}}
+>>
+stream
+q
+0 1 0 rg
+370 212 m
+246 210 l
+h
+f
+Q
+q
+0 0 0 rg
+1 0 0 1 0 612 cm
+0 0 m
+612 0 l
+f
+Q
+endstream
+endobj
+{{xref}}
+{{trailer}}
+{{startxref}}
+%%EOF
diff --git a/testing/resources/pixel/bug_1296_expected.pdf.0.png b/testing/resources/pixel/bug_1296_expected.pdf.0.png
new file mode 100644
index 0000000..e88e8d9
--- /dev/null
+++ b/testing/resources/pixel/bug_1296_expected.pdf.0.png
Binary files differ