Mantis - Squeak
Viewing Issue Advanced Details
5241 Graphics trivial always 10-15-06 02:26 06-08-07 00:57
bstj Windows  
andreas Windows  
normal XP  
assigned 3.9  
RC2, 7063 open  
none    
none  
0005241: Color tests fails because of method #printHtmlString
Numbers are not padded when printed in HTML thus making the SUnit test fail
Run test GraphicsTests-Primitive>>ColorTest
 Color-printHtmlString.st [^] (489 bytes) 10-15-06 02:26

Notes
(0010781)
johnpf   
06-08-07 00:30   
A slightly more parsimonious fix is:

printHtmlString
"answer a string whose characters are the html representation
of the receiver"
^ ((Color hex: self red)
    , (Color hex: self green)
    , (Color hex: self blue)) asUppercase

(0010782)
johnpf   
06-08-07 00:41   
Yet more parsimonious:

Color>>printHtmlString
"answer a string whose characters are the html representation
of the receiver"
^ self asHTMLColor allButFirst asUppercase
(0010783)
johnpf   
06-08-07 00:57   
Yet more parsimonious:

Color>>printHtmlString
"answer a string whose characters are the html representation
of the receiver"
^ self asHTMLColor allButFirst asUppercase