[Seaside] Testing a callback (no fuctional test)
Philippe Marschall
philippe.marschall at gmail.com
Fri Apr 27 13:57:33 UTC 2012
On Fri, Apr 27, 2012 at 10:00 AM, Davide <lasmiste at gmail.com> wrote:
> Hi,
> It's not really clear to me how to test a callback without interact with a
> browser or tool like selenium, watir etc. etc
>
> Let's take an example from the Seaside book:
>
> AnchorCallbackExample>>renderContentOn: html
> html text: count.
> html break.
> html anchor
> callback: [ self anchorClicked ];
> with: 'click to increment'
>
> How can I trigger the callback via unit test?
AnchorCallbackExample new anchorClicked
Cheers
Philippe
More information about the seaside
mailing list