Tonga test AWT_SWT/Automated//Modality fails with two error messages: FAILURE: SWT button got selected inspite of modal dialog FAILURE: AWT button gained focus inspite of modal dialog The first is the common problem: there is no API for AWT embedded frame to notify its embedding container (SWT shell) that some modal dialog is shown. Thus, when user clicks on the SWT button, SWT shell successfully activated. However, the second failure is related to AWT. AWT components shouldn't get focus when their top-level window (even if this window is embedded frame) is blocked by modal dialog.
|