Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005241 [Squeak] Graphics trivial always 10-15-06 02:26 06-08-07 00:57
Reporter bstj View Status public  
Assigned To andreas
Priority normal Resolution open Platform Windows
Status assigned   OS Windows
Projection none   OS Version XP
ETA none Fixed in Version Product Version 3.9
  Product Build RC2, 7063
Summary 0005241: Color tests fails because of method #printHtmlString
Description Numbers are not padded when printed in HTML thus making the SUnit test fail
Steps To Reproduce Run test GraphicsTests-Primitive>>ColorTest
Additional Information
Attached Files  Color-printHtmlString.st [^] (489 bytes) 10-15-06 02:26

- Relationships

- Notes
(0010781 - 241 - 345 - 345 - 345 - 345 - 345)
johnpf
06-08-07 00:30
edited on: 06-08-07 00:57

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 - 174 - 220 - 220 - 220 - 220 - 220)
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 - 174 - 220 - 220 - 220 - 220 - 220)
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
 

- Issue History
Date Modified Username Field Change
10-15-06 02:26 bstj New Issue
10-15-06 02:26 bstj Status new => assigned
10-15-06 02:26 bstj Assigned To  => andreas
10-15-06 02:26 bstj File Added: Color-printHtmlString.st
06-08-07 00:30 johnpf Note Added: 0010781
06-08-07 00:32 johnpf Note Edited: 0010781
06-08-07 00:41 johnpf Note Added: 0010782
06-08-07 00:57 johnpf Note Added: 0010783
06-08-07 00:57 johnpf Note Edited: 0010781
06-08-07 21:17 johnpf Issue Monitored: johnpf


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
53 total queries executed.
34 unique queries executed.
Powered by Mantis Bugtracker