summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tickets/Ticket2282.java
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2016-04-15 11:06:18 +0300
committerTeemu Suo-Anttila <teemusa@vaadin.com>2016-04-15 14:00:58 +0300
commit6b8412033e680ce6e5c7827ac504adf132305726 (patch)
tree0df05d16c324b285610af8910c126b58f4c490c5 /uitest/src/com/vaadin/tests/tickets/Ticket2282.java
parent9192b0bb5e5e699b506b3d3e7df4cf295fbea44a (diff)
downloadvaadin-framework-6b8412033e680ce6e5c7827ac504adf132305726.tar.gz
vaadin-framework-6b8412033e680ce6e5c7827ac504adf132305726.zip
Build uitest war with maven
Change-Id: I32625901ca27a282253df44c6e776cf9632bacda
Diffstat (limited to 'uitest/src/com/vaadin/tests/tickets/Ticket2282.java')
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2282.java56
1 files changed, 0 insertions, 56 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2282.java b/uitest/src/com/vaadin/tests/tickets/Ticket2282.java
deleted file mode 100644
index b5d4990e21..0000000000
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2282.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package com.vaadin.tests.tickets;
-
-import com.vaadin.server.LegacyApplication;
-import com.vaadin.ui.Button;
-import com.vaadin.ui.Button.ClickEvent;
-import com.vaadin.ui.FormLayout;
-import com.vaadin.ui.Label;
-import com.vaadin.ui.LegacyWindow;
-
-public class Ticket2282 extends LegacyApplication {
-
- private FormLayout layout1;
- private FormLayout layout2;
-
- @Override
- public void init() {
- LegacyWindow w = new LegacyWindow(getClass().getSimpleName());
- setMainWindow(w);
- setTheme("tests-tickets");
- w.getContent().setSizeUndefined();
-
- layout1 = new FormLayout();
- layout1.setSizeUndefined();
- layout1.setStyleName("borders");
- Label label = new Label(
- "This should not be wider than this label + reserved error space");
- label.setCaption("A caption");
- layout1.addComponent(label);
- w.addComponent(layout1);
-
- layout2 = new FormLayout();
- layout2.setWidth("500px");
- layout2.setStyleName("borders");
- label = new Label("This should be 500px wide");
- label.setCaption("A caption");
- layout2.addComponent(label);
- w.addComponent(layout2);
-
- Button b = new Button("Swap", new Button.ClickListener() {
-
- @Override
- public void buttonClick(ClickEvent event) {
- if (layout1.getWidth() < 0.0) {
- layout1.setWidth("500px");
- layout2.setWidth(null);
- } else {
- layout1.setWidth(null);
- layout2.setWidth("500px");
- }
- }
-
- });
- w.addComponent(b);
- }
-
-}