[squeak-dev] The Trunk: MorphicTests-ct.89.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Sep 13 10:22:10 UTC 2022


Christoph Thiede uploaded a new version of MorphicTests to project The Trunk:
http://source.squeak.org/trunk/MorphicTests-ct.89.mcz

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

Name: MorphicTests-ct.89
Author: ct
Time: 13 September 2022, 12:22:09.913695 pm
UUID: bf6eefe7-f24d-cf4a-b1a7-7167a703eb23
Ancestors: MorphicTests-ct.88

Adds a regression test for shrinking TransformationMorphs. Complements Morphic-ct.2041.

=============== Diff against MorphicTests-ct.88 ===============

Item was added:
+ TestCase subclass: #TransformMorphBugs
+ 	instanceVariableNames: ''
+ 	classVariableNames: ''
+ 	poolDictionaries: ''
+ 	category: 'MorphicTests-Basic'!

Item was added:
+ ----- Method: TransformMorphBugs>>testLayoutConvergence (in category 'tests - geometry') -----
+ testLayoutConvergence
+ 
+ 	| scale f inner newScale outer |
+ 	scale := 0.4.
+ 	inner := Morph new color: Color red.
+ 	f := inner addFlexShell
+ 		scale: scale;
+ 		yourself.
+ 	
+ 	outer := Morph new color: Color yellow.
+ 	outer changeTableLayout.
+ 	outer addMorph: f.
+ 	outer addMorph: (Morph new extent: 30 @ 10).
+ 	
+ 	100 timesRepeat: [
+ 		f layoutChanged. outer fullBounds.
+ 		newScale := f scale.
+ 		self assert: (scale - newScale) abs < 0.001].!



More information about the Squeak-dev mailing list