| java.lang.Object org.eclipse.ui.tests.harness.util.DialogCheck
DialogCheck | public class DialogCheck (Code) | | A DialogCheck is used test a dialog in
various ways.
For interactive tests use assertDialog .
For automated tests use assert DialogTexts .
|
Method Summary | |
public static void | assertDialog(Dialog dialog, Assert assertion) Asserts that a given dialog is not null and that it passes
certain visual tests. | public static void | assertDialogTexts(Dialog dialog, Assert assertion) Automated test that checks all the labels and buttons of a dialog
to make sure there is enough room to display all the text. | public static Shell | getShell() This method should be called when creating dialogs to test. |
assertDialog | public static void assertDialog(Dialog dialog, Assert assertion)(Code) | | Asserts that a given dialog is not null and that it passes
certain visual tests. These tests will be verified manually
by the tester using an input dialog. Use this assert method
to verify a dialog's sizing, initial focus, or accessiblity.
To ensure that both the input dialog and the test dialog are
accessible by the tester, the getShell() method should be used
when creating the test dialog.
Example usage:
Dialog dialog = new AboutDialog( DialogCheck.getShell() );
DialogCheck.assertDialog(dialog, this);
Parameters: dialog - the test dialog to be verified. assert this is the test case object, assertions will beexecuted on this object. |
assertDialogTexts | public static void assertDialogTexts(Dialog dialog, Assert assertion)(Code) | | Automated test that checks all the labels and buttons of a dialog
to make sure there is enough room to display all the text. Any
text that wraps is only approximated and is currently not accurate.
Parameters: dialog - the test dialog to be verified. assert this is the test case object, assertions will beexecuted on this object. |
getShell | public static Shell getShell()(Code) | | This method should be called when creating dialogs to test. This
ensures that the dialog's parent shell will be that of the
verification dialog.
Shell The shell of the verification dialog to be used asthe parent shell of the test dialog. |
|
|