Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-03-07 12:11:08 +0000
committerAlexander Kurtakov2018-03-07 12:12:09 +0000
commitb6dae09ffe8e33c280e9b64df56de266f919bf7f (patch)
treee12a0cf9e78ea5254ea41925b4de67d7285612ec /tests
parent022921505f9d6148dcef9e4593a2d60b2abc939c (diff)
downloadeclipse.platform.swt-b6dae09ffe8e33c280e9b64df56de266f919bf7f.tar.gz
eclipse.platform.swt-b6dae09ffe8e33c280e9b64df56de266f919bf7f.tar.xz
eclipse.platform.swt-b6dae09ffe8e33c280e9b64df56de266f919bf7f.zip
Revert "Bug 528498 - Combo menu is narrower than combo"
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.swt.tests/ManualTests/org/eclipse/swt/tests/manual/Bug528498_Combo_dropDownMenu_is_too_short.java70
1 files changed, 0 insertions, 70 deletions
diff --git a/tests/org.eclipse.swt.tests/ManualTests/org/eclipse/swt/tests/manual/Bug528498_Combo_dropDownMenu_is_too_short.java b/tests/org.eclipse.swt.tests/ManualTests/org/eclipse/swt/tests/manual/Bug528498_Combo_dropDownMenu_is_too_short.java
deleted file mode 100644
index a0baae5d79..0000000000
--- a/tests/org.eclipse.swt.tests/ManualTests/org/eclipse/swt/tests/manual/Bug528498_Combo_dropDownMenu_is_too_short.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2018 Simeon Andreev and others. All rights reserved.
- * The contents of this file are made available under the terms
- * of the GNU Lesser General Public License (LGPL) Version 2.1 that
- * accompanies this distribution (lgpl-v21.txt). The LGPL is also
- * available at http://www.gnu.org/licenses/lgpl.html. If the version
- * of the LGPL at http://www.gnu.org is different to the version of
- * the LGPL accompanying this distribution and there is any conflict
- * between the two license versions, the terms of the LGPL accompanying
- * this distribution shall govern.
- *
- * Contributors:
- * Simeon Andreev - initial API and implementation
- *******************************************************************************/
-package org.eclipse.swt.tests.manual;
-
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.graphics.Rectangle;
-import org.eclipse.swt.layout.FillLayout;
-import org.eclipse.swt.widgets.Combo;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Shell;
-
-
-/**
- * Description: Combo box drop-down menu is narrower than combo itself, for read-only combos.
- * Steps to reproduce:
- * <ol>
- * <li>click on main menu entry "Window"</li>
- * <li>click on "Preferences"</li>
- * <li>choose "Help"</li>
- * <li>click on any combo in the preference page</li>
- * </ol>
- * Expected results: The drop down menu is as long as the combo.
- * Actual results: The drop down menu is only as long as its longest entry.
- */
-public class Bug528498_Combo_dropDownMenu_is_too_short {
-
- public static void main (String [] args) {
- Display display = new Display ();
- final Shell shell = new Shell (display);
- shell.setSize(200, 50);
- shell.setLayout(new FillLayout());
- shell.setLocation(center(display, shell));
- shell.setText("Bug 528498");
-
- Combo c = new Combo(shell, SWT.READ_ONLY);
-
- for (int i = 0; i < 40; ++i) {
- c.add("item " + i);
- }
-
- shell.open ();
- while (!shell.isDisposed ()) {
- if (!display.readAndDispatch ()) display.sleep ();
- }
- display.dispose ();
- }
-
- private static Point center(Display display, Shell shell) {
- Rectangle displayBounds = display.getPrimaryMonitor().getBounds();
- Point shellBounds = shell.getSize();
- Point center = new Point(
- displayBounds.x + (displayBounds.width - shellBounds.x) / 2,
- displayBounds.y + (displayBounds.height - shellBounds.y) / 2);
-
- return center;
- }
-}

Back to the top