If you don't care whether the window had been opened at all thensending #isInWorld to the window is another approach.
Regards, Gary----- Original Message -----From: laurent laffontSent: Wednesday, March 02, 2011 12:37 PMSubject: Re: [Pharo-project] Assert SystemWindow not visibleThank you Henry, good example.Laurent.
On Wed, Mar 2, 2011 at 10:35 AM, Henrik Sperre Johansen <henrik.s.johansen@veloxit.no> wrote:
meant to write [closed := true], of course :)
Henrik Sperre Johansen wrote:
>
>
> window announcer when: WindowClosed do: [closed := false].
> window openInWorld delete.
> self assert: closed.
>
>
Cheers,
Henry
--
View this message in context: http://forum.world.st/Assert-SystemWindow-not-visible-tp3330492p3331232.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.