<body><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">
Hi Nicolas,<div><br></div><div>note than if you plan to fix (or change) the implementation of Color class >> #fromString:, we have to update *all* user-interface themes. :-(</div><div><br></div><div>Best,</div><div>Marcel</div><div class="mb_sig"></div><blockquote class="history_container" type="cite" style="border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;">
<p style="color: #AAAAAA; margin-top: 10px;">Am 16.05.2019 20:16:45 schrieb commits@source.squeak.org <commits@source.squeak.org>:</p><div style="font-family:Arial,Helvetica,sans-serif">Nicolas Cellier uploaded a new version of GraphicsTests to project The Trunk:<br>http://source.squeak.org/trunk/GraphicsTests-nice.53.mcz<br><br>==================== Summary ====================<br><br>Name: GraphicsTests-nice.53<br>Author: nice<br>Time: 16 May 2019, 8:15:16.075297 pm<br>UUID: 3f05f59a-6940-4d79-ad13-3724ac086821<br>Ancestors: GraphicsTests-nice.52<br><br>Add tests for round trip conversion of Color fromString: printHtmlString.<br><br>=============== Diff against GraphicsTests-nice.52 ===============<br><br>Item was changed:<br> ----- Method: ColorTest>>testPrintHtmlString (in category 'tests') -----<br> testPrintHtmlString<br> "self debug: #testPrintHtmlString"<br> <br>+ "test the semantic of components"<br> self assert: Color white printHtmlString = 'FFFFFF'.<br> self assert: Color red printHtmlString = 'FF0000'.<br>+ self assert: Color green printHtmlString = '00FF00'.<br>+ self assert: Color blue printHtmlString = '0000FF'.<br>+ self assert: Color black printHtmlString = '000000'.<br>+ <br>+ "test all possible values for each component (but no combinatorial)"<br>+ 16r00 to: 16rFF do:<br>+ [:component |<br>+ | xx o roo ogo oob |<br>+ xx := component printStringBase: 16 length: 2 padded: true.<br>+ o := '00'.<br>+ roo := xx , o , o.<br>+ ogo := o , xx , o.<br>+ oob := o , o , xx.<br>+ self assert: roo equals: (Color fromString: '#' , roo) printHtmlString.<br>+ self assert: ogo equals: (Color fromString: '#' , ogo) printHtmlString.<br>+ self assert: oob equals: (Color fromString: '#' , oob) printHtmlString].!<br>- self assert: Color black printHtmlString = '000000'.!<br><br><br></div></blockquote>
</div></body>