From: Artur Signell Date: Tue, 1 Sep 2009 10:12:34 +0000 (+0000) Subject: Test case for #3246 X-Git-Tag: 6.7.0.beta1~2556 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=74f9b556a572ee46079c3172899b2de1b38874a6;p=vaadin-framework.git Test case for #3246 svn changeset:8606/svn branch:6.1 --- diff --git a/src/com/vaadin/tests/components/table/ColumnCollapsingAndColumnExpansion.java b/src/com/vaadin/tests/components/table/ColumnCollapsingAndColumnExpansion.java new file mode 100644 index 0000000000..f3f04a1169 --- /dev/null +++ b/src/com/vaadin/tests/components/table/ColumnCollapsingAndColumnExpansion.java @@ -0,0 +1,39 @@ +package com.vaadin.tests.components.table; + +import com.vaadin.tests.components.TestBase; +import com.vaadin.ui.Table; + +public class ColumnCollapsingAndColumnExpansion extends TestBase { + + @Override + public void setup() { + + Table t = new Table(); + + t.addContainerProperty("Col1", String.class, null); + t.addContainerProperty("Col2", String.class, null); + t.addContainerProperty("Col3", String.class, null); + t.setColumnCollapsingAllowed(true); + + t.setSizeFull(); + + for (int y = 1; y < 5; y++) { + t.addItem(new Object[] { "cell " + 1 + "-" + y, + "cell " + 2 + "-" + y, "cell " + 3 + "-" + y, }, + new Object()); + } + + addComponent(t); + + } + + @Override + protected String getDescription() { + return "After hiding column 2 the remaining columns (1 and 3) should use all available space in the table"; + } + + @Override + protected Integer getTicketNumber() { + return 3246; + } +}