Feb. 25, 2010
3:40 p.m.
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