Subject: | content.t testing upgrades |
Date: | Tue, 2 Sep 2014 21:20:08 -0400 |
To: | bug-PDF-API2 [...] rt.cpan.org |
From: | <philperry [...] hvc.rr.com> |
PDF::API2 v2.022 Perl 5.16.3 Windows 7 Severity: Normal
There were many missing installation tests in content.t, for Content.pm.
* Added tests for rotate(), scale(), skew(), transform(), transform_rel(),
matrix(), save(), restore(), strokecolor(named, RGB), linewidth(),
miterlimit(), rect(), rectxy(), pie(), hspace(), hscale(), fill(),
fillstroke(), clip(), charspace(), wordspace(), lead(), render(),
rise(), distance(), cr(), nl()
* some tests will likely have to be updated once fixes are made:
nl (see 98535), cr (see 98550), flatness (see 98539)
* remove superfluous test cases (not exercising different code paths):
flatness(), linecap(), linejoin()
* still untested:
font(), textstate()
* documented, but can these be tested in content.t?
shade(), egstate(), image(), formimage(), textpos(), text(),
advancewidth(), text_justified(), text_fill_left(),
text_fill_center(), text_fill_right(), text_fill_justified()
* undocumented:
textlabel(), paragraph(), section()
* need to test many color inputs:
fillcolor() and strokecolor()
RGB spec with 1, 3, 4 hex digits per primitive
HSV spec with 1, 2, 3, 4 hex digits per primitive
CMYK spec with 1, 2, 4 hex digits per primitive
HSL spec with ? digits
L*a*b spec with ? digits
pattern and shading space
legacy gray color
indexed colorspace
legacy RGB
legacy CMYK
Note that the fillcolor() test includes a 9 digit CMYK (% format)
value. Is this an error, or is it really CMY? We need to better
document in the POD how the wrong number of digits are to be handled,
and test these in content.t.
I have submitted an updated content.t to the maintainer.