Add a pixel test for rendering triangles.
In particular, show that a triangle with one extremely short edge does
not render.
BUG=chromium:725555
Change-Id: I3c69de66a57ca386bac125d47cde6822efc67957
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/55535
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/testing/resources/pixel/bug_725555.in b/testing/resources/pixel/bug_725555.in
new file mode 100644
index 0000000..783087e
--- /dev/null
+++ b/testing/resources/pixel/bug_725555.in
@@ -0,0 +1,55 @@
+{{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
+1 0 0 rg
+300 170 m
+300.00036 170.00012 l
+100 450 l
+300 170 l
+h
+f
+Q
+q
+0 1 0 rg
+400 170 m
+200 450 l
+400 170 l
+h
+f
+Q
+q
+0 0 1 rg
+500 170 m
+500.00036 170.10012 l
+300 450 l
+500 170 l
+h
+f
+Q
+endstream
+endobj
+{{xref}}
+{{trailer}}
+{{startxref}}
+%%EOF
diff --git a/testing/resources/pixel/bug_725555_expected.pdf.0.png b/testing/resources/pixel/bug_725555_expected.pdf.0.png
new file mode 100644
index 0000000..2c4c731
--- /dev/null
+++ b/testing/resources/pixel/bug_725555_expected.pdf.0.png
Binary files differ