diff options
author | Jonatan Kronqvist <jonatan.kronqvist@itmill.com> | 2011-10-20 06:53:09 +0000 |
---|---|---|
committer | Jonatan Kronqvist <jonatan.kronqvist@itmill.com> | 2011-10-20 06:53:09 +0000 |
commit | 2499160e4a9a2f8c267ac54c8927a4544f9a964c (patch) | |
tree | e892a3cce933fa514e06ba86328711b919c2ef2b | |
parent | a1b2f28eece282166e197ccf115cc2e2c444454a (diff) | |
download | vaadin-framework-2499160e4a9a2f8c267ac54c8927a4544f9a964c.tar.gz vaadin-framework-2499160e4a9a2f8c267ac54c8927a4544f9a964c.zip |
TestBench test for #7808
svn changeset:21754/svn branch:6.7
-rw-r--r-- | tests/testbench/com/vaadin/tests/components/treetable/DisappearingComponents.java | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/tests/testbench/com/vaadin/tests/components/treetable/DisappearingComponents.java b/tests/testbench/com/vaadin/tests/components/treetable/DisappearingComponents.java new file mode 100644 index 0000000000..0b972f07b2 --- /dev/null +++ b/tests/testbench/com/vaadin/tests/components/treetable/DisappearingComponents.java @@ -0,0 +1,51 @@ +package com.vaadin.tests.components.treetable; + +import com.vaadin.terminal.ExternalResource; +import com.vaadin.tests.components.TestBase; +import com.vaadin.ui.Link; +import com.vaadin.ui.TreeTable; +import com.vaadin.ui.Window; + +public class DisappearingComponents extends TestBase { + + @Override + protected void setup() { + Window mainWindow = new Window("Application"); + final TreeTable tt = new TreeTable(); + tt.setSizeUndefined(); + tt.setWidth("100%"); + tt.setImmediate(true); + tt.setPageLength(0); + tt.addContainerProperty("i", Integer.class, null); + tt.addContainerProperty("link", Link.class, null); + Object[] items = new Object[3]; + for (int i = 0; i < items.length; i++) { + items[i] = tt + .addItem( + new Object[] { + i + 1, + new Link(String.valueOf(i + 1), + new ExternalResource( + "http://www.google.fi")) }, + null); + } + tt.setChildrenAllowed(items[0], false); + tt.setChildrenAllowed(items[2], false); + tt.setParent(items[2], items[1]); + + mainWindow.addComponent(tt); + + setMainWindow(mainWindow); + } + + @Override + protected String getDescription() { + return "TreeTable column component empty after expand+collapse when pageLength is set to zero"; + } + + @Override + protected Integer getTicketNumber() { + return 7808; + } + +} |