summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tickets/Ticket2742.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/tickets/Ticket2742.java')
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2742.java42
1 files changed, 42 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2742.java b/uitest/src/com/vaadin/tests/tickets/Ticket2742.java
new file mode 100644
index 0000000000..733f6ac6f6
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2742.java
@@ -0,0 +1,42 @@
+/**
+ *
+ */
+package com.vaadin.tests.tickets;
+
+import com.vaadin.Application;
+import com.vaadin.ui.HorizontalLayout;
+import com.vaadin.ui.NativeSelect;
+import com.vaadin.ui.UI.LegacyWindow;
+
+/**
+ * @author Risto Yrjänä / Vaadin Ltd.
+ *
+ */
+public class Ticket2742 extends Application.LegacyApplication {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see com.vaadin.Application#init()
+ */
+ @Override
+ public void init() {
+ LegacyWindow mainWindow = new LegacyWindow();
+ setMainWindow(mainWindow);
+
+ String shortString = "Short";
+ String longString = "Very, very long";
+
+ HorizontalLayout hl = new HorizontalLayout();
+
+ for (int i = 0; i < 2; i++) {
+ NativeSelect ns = new NativeSelect(shortString);
+ ns.addItem(longString);
+ ns.setNullSelectionAllowed(false);
+ ns.select(longString);
+ hl.addComponent(ns);
+ }
+ mainWindow.addComponent(hl);
+ }
+
+}