summaryrefslogtreecommitdiffstats
path: root/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests
diff options
context:
space:
mode:
authorVeronika Irvine <veronika>2002-03-18 17:48:37 +0000
committerVeronika Irvine <veronika>2002-03-18 17:48:37 +0000
commit9deefd18be8de01a672cfca15620a560b1ae5f22 (patch)
tree4b4de78a364e90e3b628482aae1da10330d20a38 /tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests
parent02b575c1438911e49f88997516aeeab5fefb33c5 (diff)
downloadeclipse.platform.swt-9deefd18be8de01a672cfca15620a560b1ae5f22.tar.gz
eclipse.platform.swt-9deefd18be8de01a672cfca15620a560b1ae5f22.tar.xz
eclipse.platform.swt-9deefd18be8de01a672cfca15620a560b1ae5f22.zip
build 2031
Diffstat (limited to 'tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests')
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Menu.java16
1 files changed, 14 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 4b3c439558..9b57f01fc9 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
@@ -224,7 +224,13 @@ public void test_isEnabled() {
* it may not actually be showing.
* </p>
*/
-public void test_isVisible(){
+public void test_isVisible(){
+ // This test can not be run as it currently is written. On Windows, if a
+ // menu has no menu items, it will not become visible.
+ // If we add menu items to the menu then a second problem is encountered
+ // because menu.setVisible() enters into a modal loop and execution of
+ // the JUnit test case will not continue until the menu is selected and closed.
+ if (true) return;
menu.setVisible(true);
assertTrue(menu.isVisible());
@@ -282,7 +288,13 @@ public void test_setLocationII() {
* </p>
*/
/* tests both getVisible and setVisble */
-public void test_setVisibleZ(){
+public void test_setVisibleZ(){
+ // This test can not be run as it currently is written. On Windows, if a
+ // menu has no menu items, it will not become visible.
+ // If we add menu items to the menu then a second problem is encountered
+ // because menu.setVisible() enters into a modal loop and execution of
+ // the JUnit test case will not continue until the menu is selected and closed.
+ if (true) return;
menu.setVisible(true);
assertTrue(menu.getVisible());
// API not implemented yet