> 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 _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
