Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 6050 Details for
Bug 42789
[Dialogs] DialogCheck is using "assert" as a variable name
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch to DialogCheck
org.eclipse.ui.tests-RemoveAssert.patch (text/plain), 3.17 KB, created by
Douglas Pollock
on 2003-09-09 10:30:44 EDT
(
hide
)
Description:
Patch to DialogCheck
Filename:
MIME Type:
Creator:
Douglas Pollock
Created:
2003-09-09 10:30:44 EDT
Size:
3.17 KB
patch
obsolete
>Index: UI Test Utils/org/eclipse/ui/tests/util/DialogCheck.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.tests/UI Test Utils/org/eclipse/ui/tests/util/DialogCheck.java,v >retrieving revision 1.6 >diff -u -r1.6 DialogCheck.java >--- UI Test Utils/org/eclipse/ui/tests/util/DialogCheck.java 16 Jun 2003 16:38:12 -0000 1.6 >+++ UI Test Utils/org/eclipse/ui/tests/util/DialogCheck.java 9 Sep 2003 14:24:07 -0000 >@@ -60,7 +60,7 @@ > * @param assert this is the test case object, assertions will be > * executed on this object. > */ >- public static void assertDialog(Dialog dialog, Assert assert) { >+ public static void assertDialog(Dialog dialog, Assert assertion) { > Assert.assertNotNull(dialog); > if (_verifyDialog.getShell() == null) { > //force the creation of the verify dialog >@@ -81,12 +81,12 @@ > * @param assert this is the test case object, assertions will be > * executed on this object. > */ >- public static void assertDialogTexts(Dialog dialog, Assert assert) { >+ public static void assertDialogTexts(Dialog dialog, Assert assertion) { > Assert.assertNotNull(dialog); > dialog.setBlockOnOpen(false); > dialog.open(); > Shell shell = dialog.getShell(); >- verifyCompositeText(shell, assert); >+ verifyCompositeText(shell, assertion); > dialog.close(); > } > >@@ -118,7 +118,7 @@ > * @param composite The composite to look through > * @param assert The object to invoke assertions on. > */ >- private static void verifyCompositeText(Composite composite, Assert assert) { >+ private static void verifyCompositeText(Composite composite, Assert assertion) { > Control children[] = composite.getChildren(); > for (int i = 0; i < children.length; i++) { > if (children[i] instanceof TabFolder) { >@@ -130,15 +130,15 @@ > } > try { > //verify the text if the child is a button >- verifyButtonText((Button) children[i], assert); >+ verifyButtonText((Button) children[i], assertion); > } catch (ClassCastException exNotButton) { > try { > //child is not a button, maybe a label >- verifyLabelText((Label) children[i], assert); >+ verifyLabelText((Label) children[i], assertion); > } catch (ClassCastException exNotLabel) { > try { > //child is not a label, make a recursive call if it is a composite >- verifyCompositeText((Composite) children[i], assert); >+ verifyCompositeText((Composite) children[i], assertion); > } catch (ClassCastException exNotComposite) { > //the child is not a button, label, or composite - ignore it. > } >@@ -152,7 +152,7 @@ > * @param button The button to verify, > * @param assert The object to invoke assertions on. > */ >- private static void verifyButtonText(Button button, Assert assert) { >+ private static void verifyButtonText(Button button, Assert assertion) { > String widget = button.toString(); > Point size = button.getSize(); > >@@ -189,7 +189,7 @@ > * @param label The label to verify, > * @param assert The object to invoke assertions on. > */ >- private static void verifyLabelText(Label label, Assert assert) { >+ private static void verifyLabelText(Label label, Assert assertion) { > String widget = label.toString(); > Point size = label.getSize(); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 42789
: 6050