[Pkg] The Trunk: GraphicsTests-nice.30.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Feb 20 18:24:00 UTC 2012


Nicolas Cellier uploaded a new version of GraphicsTests to project The Trunk:
http://source.squeak.org/trunk/GraphicsTests-nice.30.mcz

==================== Summary ====================

Name: GraphicsTests-nice.30
Author: nice
Time: 20 February 2012, 7:23:46.47 pm
UUID: b7fabac4-ac45-4174-bf62-f9c3c36b3b1c
Ancestors: GraphicsTests-ar.29

Pick a ColorTest from pharo
For Issue http://code.google.com/p/pharo/issues/detail?id=5335

=============== Diff against GraphicsTests-ar.29 ===============

Item was changed:
  ----- Method: ColorTest>>testFromString (in category 'testing') -----
  testFromString
+ 	self assert: ((Color fromString: '#FF8800') asHTMLColor sameAs: '#ff8800');
+ 		assert: ((Color fromString: 'FF8800') asHTMLColor sameAs: '#ff8800');
+ 		assert: ((Color fromString: 'white') asHTMLColor sameAs: '#ffffff');
+ 		assert: ((Color fromString: 'black') asHTMLColor sameAs: '#000000');
+ 		assert: ((Color fromString: nil) asHTMLColor sameAs: '#ffffff');
+ 		assert: ((Color fromString: 'inexistent color') asHTMLColor sameAs: '#ffffff'); "should return white"
+ 		assert: ((Color fromString: 'XXXXXX') asHTMLColor sameAs: '#ffffff'); "not alphanumeric"
+ 		assert: ((Color fromString: '00000000') asHTMLColor sameAs: '#ffffff'). "too many digits"
+ 		
+ 	self
+ 		assert: (Color fromString: 'DARKGRAY') = Color darkGray description: 'Color can be specified with a case insensitive color name';
+ 		assert: (Color fromString: '#blue') = Color blue description: 'Color can be specified with a leading literal sharp'.!
- 	self assert: ((Color fromString: '#FF8800') asHTMLColor sameAs: '#ff8800').!



More information about the Packages mailing list