The Trunk: GraphicsTests-pre.48.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: GraphicsTests-pre.48.mcz

commits-2
Patrick Rein uploaded a new version of GraphicsTests to project The Trunk:
http://source.squeak.org/trunk/GraphicsTests-pre.48.mcz

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

Name: GraphicsTests-pre.48
Author: pre
Time: 15 October 2018, 9:54:58.586742 am
UUID: 1033b8b9-c68e-0046-9aa5-c1a78bb4c0d4
Ancestors: GraphicsTests-pre.47

Adds a test to protect us from a regression of odd behavior of colorFromPixelValue:depth: which returns transparent for 32bit rgb black.

Recategorizes a test which remained alone in a category.

=============== Diff against GraphicsTests-pre.47 ===============

Item was added:
+ ----- Method: ColorTest>>testColorsFromPixelValue32BitBlack (in category 'tests') -----
+ testColorsFromPixelValue32BitBlack
+
+ "This is a regression test which tests for deprecated behavior of
+ colorFromPixelValue:depth: which set 32bit rgb black to transparent."
+ self assert: Color black equals: (Color colorFromPixelValue: 16rFF000000 depth: 32)!

Item was changed:
+ ----- Method: ColorTest>>testConstructorsAreConsistent (in category 'tests') -----
- ----- Method: ColorTest>>testConstructorsAreConsistent (in category 'testing') -----
  testConstructorsAreConsistent
 
  "Color seaFoam asHTMLColor".
  self assert: (Color r: 0 g: 1 b: 128/255) equals: (Color fromString: '#00FF80').
  self assert: (Color r: 0 g: 1 b: 128/255) equals: (Color r: 0 g: 255 b: 128 range: 255).!