[Seaside] ColorValue>>hex fixes

Boris Popov boris at deepcovelabs.com
Fri Jul 4 22:22:13 UTC 2008

I had to fix ColorValue>>hex today to get the following test case to
pass without blowing up,

Self assert: (((ColorValue.ColorNames keys asSortedCollection collect:
[:ea | ColorValue perform: ea]) collect: [:ea | ea hex])
isSameSequenceAs: #('000000' '0000FF' '7F3F3F' '7FFF00' '00FFFF'
'007F7F' '5F5F5F' '007F00' '7F007F' '7F0000' '7F7F7F' '00FF00' '7FFFFF'
'AAAAAA' 'FFFF7F' 'FF00FF' '00007F' '7F7F00' 'FF7F00' 'FF7FFF' '7FFF7F'
'FFBFBF' '9F1FDF' 'FF0000' '7F7FFF' 'FF7F7F' '00FF7F' '3F3F3F' 'D4D4D4'
'FFFFFF' 'FFFF00')).

I borrowed from ColorValue>>javascriptOn: and refactored it to call the
new method. Again, no idea if this is something Cincom folks or the core
group need to be interested in.



DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5

boris at deepcovelabs.com


This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any

Thank you.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ColorValue-javascriptOn.st
Type: application/octet-stream
Size: 255 bytes
Desc: ColorValue-javascriptOn.st
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20080704/a0165afa/ColorValue-javascriptOn.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ColorValue-printHexOn.st
Type: application/octet-stream
Size: 462 bytes
Desc: ColorValue-printHexOn.st
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20080704/a0165afa/ColorValue-printHexOn.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ColorValue-hex.st
Type: application/octet-stream
Size: 194 bytes
Desc: ColorValue-hex.st
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20080704/a0165afa/ColorValue-hex.obj

More information about the seaside mailing list