[Seaside-dev] Issue 88 in seaside: Updated ColorValue>>fromString:
to support 3-digit notation
codesite-noreply at google.com
codesite-noreply at google.com
Sat Jul 5 07:58:09 UTC 2008
Issue 88: Updated ColorValue>>fromString: to support 3-digit notation
http://code.google.com/p/seaside/issues/detail?id=88
New issue report by philippe.marschall:
I had just updated fromString method to support three-digit notation and
pass the following test case, was thinking it might be useful to
someone, but again, can't quite say if this is something Cincom folks
need to integrate in their branch of Squeak-Extensions or something that
should go into Squeak's version, so don't jump on my case for
cross-posting please ;)
testColorFromString
self assert: (ColorValue fromString: 'ff0000') = ColorValue red.
self assert: (ColorValue fromString: 'FF0000') = ColorValue red.
self assert: (ColorValue fromString: '#ff0000') = ColorValue red.
self assert: (ColorValue fromString: '#FF0000') = ColorValue red.
self assert: (ColorValue fromString: 'f00') = ColorValue red.
self assert: (ColorValue fromString: 'F00') = ColorValue red.
self assert: (ColorValue fromString: '#f00') = ColorValue red.
self assert: (ColorValue fromString: '#F00') = ColorValue red.
self assert: (ColorValue fromString: 'red') = ColorValue red.
self assert: (ColorValue fromString: 'RED') = ColorValue red.
self assert: (ColorValue fromString: '#red') = ColorValue red.
self assert: (ColorValue fromString: '#RED') = ColorValue red.
Attachments:
ColorValue class-fromString.st 1.0 KB
Issue attributes:
Status: New
Owner: philippe.marschall
Labels: Type-Feature Priority-Low Platform-VisualWorks
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
More information about the seaside-dev
mailing list