[Checking in ahead of review so Fred can test it.] Change ptw-20101116-sAN by [email protected] on 2010-11-16 08:45:41 EST in /Users/ptw/OpenLaszlo/trunk-devo for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Liberate CSS colorspec parser Bugs Fixed: LPP-9528 LzColorUtils does not handle rbga(n,n,n,0) correctly Technical Reviewer: [email protected] (pending) QA Reviewer: [email protected] (pending) Details: lzunit-lzutils: Add some tests, including failing case Fred reported. Adjust hsv test to be accurate. Test that all named colors and a random sampling of internal representations can be correctly unconverted and reconverted by the CSS parser and get back the same value. LzUtils: Round input values to internalfromrgba for more accurate results. Which means internalfrom(hsvhsl)a no longer needs to (incorrectly) floor their values before calling internalfromrgba. Fix the RegExp patterns used by internalfromccc to allow decimals with no preceding digit. Fudge the return type to permit transparent->null (bug filed, to replace with internal representation of rgba(0,0,0,0)). Tests: lzunit-lzutils Files: M test/lfc/lzunit-lzutils.lzx M WEB-INF/lps/lfc/services/LzUtils.lzs Changeset: http://svn.openlaszlo.org/openlaszlo/patches/ptw-20101116-sAN.tar
