The Inbox: GraphicsTests-fbs.38.mcz

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

The Inbox: GraphicsTests-fbs.38.mcz

commits-2
A new version of GraphicsTests was added to project The Inbox:
http://source.squeak.org/inbox/GraphicsTests-fbs.38.mcz

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

Name: GraphicsTests-fbs.38
Author: fbs
Time: 20 December 2013, 1:30:35.779 pm
UUID: 081189cc-a44f-fa4e-965e-25438280ea93
Ancestors: GraphicsTests-fbs.37

Bare #assert:s are useless in an offline environment.

=============== Diff against GraphicsTests-fbs.37 ===============

Item was changed:
  ----- Method: PNGReadWriterTest>>decodeColors:depth: (in category 'tests - decoding') -----
  decodeColors: colorsAndFiles depth: requiredDepth
 
  colorsAndFiles do:[:assoc| | form color bytes |
  color := assoc key.
  bytes := Base64MimeConverter mimeDecodeToBytes: assoc value readStream.
  form := PNGReadWriter formFromStream: bytes.
+ self assert: requiredDepth equals: form depth description: 'Form depth'.
+ self assert: (color pixelValueForDepth: requiredDepth) equals: (form pixelValueAt: 1@1) description: 'Corner pixel'.
- self assert: form depth = requiredDepth.
- self assert: (form pixelValueAt: 1@1) = (color pixelValueForDepth: requiredDepth).
  ].!