[squeak-dev] The Trunk: MorphicTests-mt.61.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Apr 4 09:05:59 UTC 2020


Marcel Taeumel uploaded a new version of MorphicTests to project The Trunk:
http://source.squeak.org/trunk/MorphicTests-mt.61.mcz

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

Name: MorphicTests-mt.61
Author: mt
Time: 4 April 2020, 11:06:00.417864 am
UUID: 6e50f97d-ac59-0143-ac2e-d2908a269f9a
Ancestors: MorphicTests-mt.60

Adds a test for the recently discovered layout bug. Thanks to Christoph (ct)!

=============== Diff against MorphicTests-mt.60 ===============

Item was added:
+ ----- Method: TableLayoutTest>>testDisableLayoutEmptyArrangement (in category 'tests') -----
+ testDisableLayoutEmptyArrangement
+ 
+ 	container := Morph new
+ 		layoutPolicy: TableLayout new;
+ 		listDirection: #rightToLeft; "... to not get into the layout's fast lane ..."
+ 		wrapCentering: #center; "... to actually trigger the bug ..."
+ 		addMorphBack: Morph new;
+ 		addMorphBack: Morph new;
+ 		yourself.
+ 
+ 	container submorphsDo: [:m | m disableLayout: true].
+ 	self shouldnt: [self ensureLayout: container] raise: Error.!



More information about the Squeak-dev mailing list