<div dir="ltr"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><br>
</div>catch the error and do nothing? Here is the code:<br>
<br>
[<br>
 &nbsp; &nbsp;&quot;some code&quot;<br>
] on: SyntaxErrorNotification do: [<br>
 &nbsp; &nbsp;&quot;nothing&quot;<br>
<div class="Ih2E3d">]<br>
<br>
&gt; &nbsp; &nbsp;2. Some tests require user interaction with popups, ... &nbsp;I want these<br>
&gt; &nbsp; &nbsp;tests to generate an error when trying to open such dialogs, as unit tests<br>
&gt; &nbsp; &nbsp;should never require user interaction. How can I do this ?<br>
<br>
</div>[] on: ProvideAnswerNotification do: [self error]<br>
<br>
To see where those notifications are used, highlight<br>
&quot;ProvideAnswerNotification&quot; and press Alt-Shift-N (find<br>
references)<br>
<font color="#888888"><br>
--<br>
Matthew Fulmer -- <a href="http://mtfulmer.wordpress.com/" target="_blank">http://mtfulmer.wordpress.com/</a><br>
</font></blockquote><div><br>Thank you !<br><br>Laurent Laffont <br></div></div><br></div>