The Trunk: Tests-eem.379.mcz

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

The Trunk: Tests-eem.379.mcz

Eliot Miranda uploaded a new version of Tests to project The Trunk:

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

Name: Tests-eem.379
Author: eem
Time: 3 July 2017, 4:13:10.068801 pm
UUID: cdac3950-d5ff-488a-b17c-a733bd79b74e
Ancestors: Tests-eem.378

Use the abstract class-side interface for image segment use now that we have both LegacyImageSegment and NativeImageSegment.

=============== Diff against Tests-eem.378 ===============

Item was changed:
  ----- Method: BitmapStreamTests>>validateImageSegment (in category 'private') -----
  "array is set up with an array."
  | other filename |
  filename := 'bitmapStreamTest.extSeg'.
  FileDirectory default deleteFileNamed: filename ifAbsent: [ ].
+ (ImageSegment copyFromRootsForExport: {array})
- (ImageSegment new copyFromRootsForExport: (Array with: array))
           writeForExport: filename.
  other := (FileDirectory default readOnlyFileNamed: filename)
  self assert: array = other originalRoots first.
  "clean up disk"
  FileDirectory default deleteFileNamed: filename ifAbsent: [ ]!

Item was changed:
  ----- Method: ImageSegmentTest>>testImageSegmentsShouldBeWritableToaFile (in category 'testing') -----
  "This should not throw an exception"
  | classes |
  classes := UIManager subclasses reject: [:sc| sc isActiveManager].
+ NativeImageSegment new
- ImageSegment new
  copyFromRoots: classes asArray sizeHint: 100;
  writeToFile: 'InactiveUIManagers';
  "TODO: write assertions showing that something meaningful actually happened."
  "now bring them back in again"
  classes do: [:ea| ea new]!