If you don't care whether the window had been opened at all then sending #isInWorld to the window is another approach. Regards, Gary ----- Original Message ----- From: laurent laffont To: Pharo-project@lists.gforge.inria.fr Sent: Wednesday, March 02, 2011 12:37 PM Subject: Re: [Pharo-project] Assert SystemWindow not visible Thank you Henry, good example. Laurent. On Wed, Mar 2, 2011 at 10:35 AM, Henrik Sperre Johansen <henrik.s.johansen@veloxit.no> wrote: Henrik Sperre Johansen wrote: > > > window announcer when: WindowClosed do: [closed := false]. > window openInWorld delete. > self assert: closed. > > meant to write [closed := true], of course :) 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.