Status: New
Owner:
[hidden email]
CC:
[hidden email]
Labels: Type-Engineering Priority-Low
New issue 627 by
[hidden email]: Glamour-Morphic unit tests are
fragile to changes in the submorphs tree
http://code.google.com/p/moose-technology/issues/detail?id=627Glamour-Morphic unit tests contain code like this:
treeMorph := window submorphs last submorphs first submorphs first
submorphs first submorphs first.
self assert: treeMorph class = LazyMorphTreeMorph.
Which is very fragile to any changes in the submorphs tree. I propose to
replace each of these piece of code to something like:
treeMorph := self find: LazyMorphTreeMorph in: window
The method #find:in: could use something like Morph>>allMorphsDo: to find a
corresponding morph in the submorphs tree.
I guess this would made the code slower but haven't tested it.
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev