summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Cornu <ccornu>2003-02-28 15:41:13 +0000
committerChristophe Cornu <ccornu>2003-02-28 15:41:13 +0000
commit964685b64d7ee2f994cee91fe3ed19a38215ba5d (patch)
tree35a7ef346171bdb940b578f20699db42175a0d8a
parent4a120b0bfdc049a93e47891202ee9bc6747a65b5 (diff)
downloadeclipse.platform.swt-964685b64d7ee2f994cee91fe3ed19a38215ba5d.tar.gz
eclipse.platform.swt-964685b64d7ee2f994cee91fe3ed19a38215ba5d.tar.xz
eclipse.platform.swt-964685b64d7ee2f994cee91fe3ed19a38215ba5d.zip
*** empty log message ***
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Menu.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Menu.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Menu.java
index cfa09f6b74..7796b8c428 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Menu.java
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Menu.java
@@ -9,6 +9,7 @@ package org.eclipse.swt.tests.junit;
import org.eclipse.swt.*;
import org.eclipse.swt.widgets.*;
+import org.eclipse.swt.graphics.*;
import junit.framework.*;
import junit.textui.*;
@@ -276,11 +277,17 @@ public void test_setEnabledZ() {
}
public void test_setLocationII() {
- warnUnimpl("Test test_setLocationII not written");
+ menu.setLocation(0,0);
}
public void test_setLocationLorg_eclipse_swt_graphics_Point() {
- warnUnimpl("Test test_setLocationLorg_eclipse_swt_graphics_Point not written");
+ menu.setLocation(new Point(0,0));
+ try {
+ menu.setLocation(null);
+ fail("No exception thrown for null argument");
+ }
+ catch (IllegalArgumentException e) {
+ }
}
/**