summaryrefslogtreecommitdiff
path: root/testing/resources
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-08-31 17:24:55 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-31 17:24:55 +0000
commita6325f8ab7ec26e6915b600193bbcfc2710150ae (patch)
tree423cb0bf498cbce64f2f77f59f48862d606a84a4 /testing/resources
parentbe1b71ae76632d9889872bbb638cb21d942e48df (diff)
downloadpdfium-a6325f8ab7ec26e6915b600193bbcfc2710150ae.tar.xz
Test for radial shading when start is a point on border of end circle.
Bug: pdfium:1140 Change-Id: I306b7be5ea2732742e90e416f58c11bcaf8cbaf6 Reviewed-on: https://pdfium-review.googlesource.com/41770 Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'testing/resources')
-rw-r--r--testing/resources/pixel/radial_shading_point_at_border.in52
-rw-r--r--testing/resources/pixel/radial_shading_point_at_border_expected.pdf.0.pngbin0 -> 7195 bytes
-rw-r--r--testing/resources/pixel/radial_shading_point_at_border_no_extend.in52
-rw-r--r--testing/resources/pixel/radial_shading_point_at_border_no_extend_expected.pdf.0.pngbin0 -> 7199 bytes
4 files changed, 104 insertions, 0 deletions
diff --git a/testing/resources/pixel/radial_shading_point_at_border.in b/testing/resources/pixel/radial_shading_point_at_border.in
new file mode 100644
index 0000000000..ccb4cce9f2
--- /dev/null
+++ b/testing/resources/pixel/radial_shading_point_at_border.in
@@ -0,0 +1,52 @@
+{{header}}
+
+{{object 1 0}}
+<< /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
+ /MediaBox [0 0 300 400]
+ /Contents 4 0 R
+ /Resources << /Shading << /R9 5 0 R >> >>>>
+endobj
+
+{{object 4 0}}
+<< /Length 5 0 R >>
+stream
+50 0 0 50 150 100 cm
+10 10 280 380 re f
+/R9 sh
+endstream
+endobj
+
+{{object 5 0}}
+<<
+ /ShadingType 3
+ /ColorSpace /DeviceRGB
+ /Coords [-.223151 -.974784 0.0 0.0 0.0 1.0] % Start is a point on the border of end
+ /Function 6 0 R
+ /Extend [true true]
+ >>
+endobj
+
+{{object 6 0}}
+<<
+ /FunctionType 2
+ /Domain [0.0 1.0]
+ /C0 [0.1 0.2 0.8]
+ /C1 [0.05 0.01 0.4]
+ /N 1
+>>
+endobj
+
+{{xref}}
+{{trailer}}
+{{startxref}}
+%%EOF
diff --git a/testing/resources/pixel/radial_shading_point_at_border_expected.pdf.0.png b/testing/resources/pixel/radial_shading_point_at_border_expected.pdf.0.png
new file mode 100644
index 0000000000..1640803432
--- /dev/null
+++ b/testing/resources/pixel/radial_shading_point_at_border_expected.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/radial_shading_point_at_border_no_extend.in b/testing/resources/pixel/radial_shading_point_at_border_no_extend.in
new file mode 100644
index 0000000000..ce98dd817f
--- /dev/null
+++ b/testing/resources/pixel/radial_shading_point_at_border_no_extend.in
@@ -0,0 +1,52 @@
+{{header}}
+
+{{object 1 0}}
+<< /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
+ /MediaBox [0 0 300 400]
+ /Contents 4 0 R
+ /Resources << /Shading << /R9 5 0 R >> >>>>
+endobj
+
+{{object 4 0}}
+<< /Length 5 0 R >>
+stream
+50 0 0 50 150 100 cm
+10 10 280 380 re f
+/R9 sh
+endstream
+endobj
+
+{{object 5 0}}
+<<
+ /ShadingType 3
+ /ColorSpace /DeviceRGB
+ /Coords [-.223151 -.974784 0.0 0.0 0.0 1.0] % Start is a point on the border of end
+ /Function 6 0 R
+ /Extend [false false]
+ >>
+endobj
+
+{{object 6 0}}
+<<
+ /FunctionType 2
+ /Domain [0.0 1.0]
+ /C0 [0.1 0.2 0.8]
+ /C1 [0.05 0.01 0.4]
+ /N 1
+>>
+endobj
+
+{{xref}}
+{{trailer}}
+{{startxref}}
+%%EOF
diff --git a/testing/resources/pixel/radial_shading_point_at_border_no_extend_expected.pdf.0.png b/testing/resources/pixel/radial_shading_point_at_border_no_extend_expected.pdf.0.png
new file mode 100644
index 0000000000..dfceaf3325
--- /dev/null
+++ b/testing/resources/pixel/radial_shading_point_at_border_no_extend_expected.pdf.0.png
Binary files differ