[Pharo-project] Thread UI

Lukas Renggli renggli at gmail.com
Thu Feb 25 10:40:35 EST 2010


> From a test-clarity (and robustness) POV though, you'd be much much
> better by instead asserting properties of the morphs layout/colors than
> sampling of display colors...
> | morph |
>
>        morph := Morph new.
>        morph doLayoutIn: someBounds.
>        self assert: whatIExpectedWithAboveBounds equals: morph someLayoutVariable

Also have a look the OB and Glamour morphic tests. They mostly does
not display the actual morph to test it.

Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch




More information about the Pharo-dev mailing list