[Seaside] Seaside Testing -
smalltalk at roblally.plus.com
Fri Nov 12 19:16:58 CET 2004
C. David Shaffer wrote:
> I suspect that my documentation got ahead of the version on SqueakMap.
> In fact, this feature is broken by the new initialization scheme used in
> Seaside 2.5 anyway (there's a session reference in the initialize method
> which causes all kind of problems with creating components outside of
> the server's request handling look). I've only written one test case
> that needed it but it is on my list of bug fixes for the next release (I
> posted the list to the mailling list a short while ago). I have an idea
> to kind of fix it though: I can provide a hook so a test case can be
> passed the component once the first request creates it. It isn't
> perfect but maybe it would meet your needs for now. It would look
> something like:
> self newApplicationWithRootClass: SomeComponent initializeWith: [:comp |
> "do something to comp"].
> How does that sound? If it will work for you I'll try to get it working.
That sounds like exactly the sort of thing I'm looking for. In fact, I've been trying to figure out how to add precisely
that message myself - sadly my newness to Squeak and Smalltalk is leaving my at a disadvantage. Anything I can do to
help - just shout.
As an aside, this must be something of a record for a developer - documentation for features yet to be written 8>D.
More information about the Seaside