summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-05-03 18:17:21 +0300
committerVaadin Code Review <review@vaadin.com>2013-05-17 10:15:17 +0000
commit5a33d7df70bff3339501458991628d175ba83738 (patch)
treefb7ff1e59dcb6a2aa67ee4a356e819d1413afd21 /uitest
parent63dd611503ff46392e59951377f501b94cd21f18 (diff)
downloadvaadin-framework-5a33d7df70bff3339501458991628d175ba83738.tar.gz
vaadin-framework-5a33d7df70bff3339501458991628d175ba83738.zip
Test for #11775
Change-Id: Ic2ff1a3b13e2d74bb9119b8336b8a83e0262833b
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/com/vaadin/tests/components/gridlayout/GridLayoutWithNonIntegerWidth.java53
1 files changed, 53 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/gridlayout/GridLayoutWithNonIntegerWidth.java b/uitest/src/com/vaadin/tests/components/gridlayout/GridLayoutWithNonIntegerWidth.java
new file mode 100644
index 0000000000..8312b15ba7
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/components/gridlayout/GridLayoutWithNonIntegerWidth.java
@@ -0,0 +1,53 @@
+package com.vaadin.tests.components.gridlayout;
+
+import com.vaadin.server.VaadinRequest;
+import com.vaadin.tests.components.AbstractTestUI;
+import com.vaadin.ui.GridLayout;
+import com.vaadin.ui.HorizontalLayout;
+import com.vaadin.ui.Label;
+import com.vaadin.ui.Panel;
+import com.vaadin.ui.VerticalLayout;
+
+/**
+ * Main UI class
+ */
+@SuppressWarnings("serial")
+public class GridLayoutWithNonIntegerWidth extends AbstractTestUI {
+
+ @Override
+ protected void setup(VaadinRequest request) {
+ Panel p1 = new Panel("Panel with GridLayout");
+ GridLayout grid = new GridLayout(1, 1, new Label("A"));
+ grid.setWidth(100, Unit.PERCENTAGE);
+ p1.setContent(grid);
+ p1.setWidth("354.390625px");
+
+ Panel p2 = new Panel("Panel with HorizontalLayout");
+ HorizontalLayout hl = new HorizontalLayout(new Label("A"));
+ hl.setWidth(100, Unit.PERCENTAGE);
+ p2.setContent(hl);
+ p2.setWidth("354.390625px");
+
+ setContent(new VerticalLayout(p1, p2));
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see com.vaadin.tests.components.AbstractTestUI#getTestDescription()
+ */
+ @Override
+ protected String getTestDescription() {
+ return "Neither of the panels should contain scrollbars";
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see com.vaadin.tests.components.AbstractTestUI#getTicketNumber()
+ */
+ @Override
+ protected Integer getTicketNumber() {
+ return 11775;
+ }
+} \ No newline at end of file