[Pharo-project] modal windows and unit tests

Alexander Lazarević laza at blobworks.com
Tue Oct 12 16:44:52 EDT 2010


I was just looking at something similar.
I guess for modal windows that are a kind of DialogWindow something
like this should work

[UIManager default confirm: 'Got milk?']
  on: ProvideAnswerNotification
  do: [:ex | ex resume: (ex messageText = 'Got milk?')]

But which modal windows do pop up in your scenario, that do not send a
notification?

Regards,
 Alex

2010/10/12 Alexandre Bergel <alexandre at bergel.eu>:
> Hi!
>
> A modal window is pop up by one of my tests. Is there a way to capture this situation and simply remove the modal window?
> Apparently, no notification is raised...
>
> Cheers,
> Alexandre
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project at lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>




More information about the Pharo-dev mailing list