summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Dahlström <johannes.dahlstrom@vaadin.com>2012-07-09 11:06:31 +0000
committerJohannes Dahlström <johannes.dahlstrom@vaadin.com>2012-07-09 11:06:31 +0000
commitdd5289d3b5b50b526728798d693fa115f13b18f3 (patch)
treea827645e0058f2753348ae2b09bf40a08483eb76
parent4d543d3ecb83630a00cf07437655b1311320dc67 (diff)
downloadvaadin-framework-dd5289d3b5b50b526728798d693fa115f13b18f3.tar.gz
vaadin-framework-dd5289d3b5b50b526728798d693fa115f13b18f3.zip
Empty TreeTable rows collapse after #7387 fix, give them some content to prevent this
svn changeset:23998/svn branch:6.8
-rw-r--r--tests/testbench/com/vaadin/tests/components/treetable/AddNodesOnExpand.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/testbench/com/vaadin/tests/components/treetable/AddNodesOnExpand.java b/tests/testbench/com/vaadin/tests/components/treetable/AddNodesOnExpand.java
index 5bf0370bab..60ef551b44 100644
--- a/tests/testbench/com/vaadin/tests/components/treetable/AddNodesOnExpand.java
+++ b/tests/testbench/com/vaadin/tests/components/treetable/AddNodesOnExpand.java
@@ -22,7 +22,8 @@ public class AddNodesOnExpand extends TestBase {
Object openedItemId = event.getItemId();
if (!treetable.hasChildren(openedItemId)) {
for (int j = 0; j < 3; j++) {
- treetable.addItem(openedItemId + "-" + j);
+ treetable.addItem(new String[] { "Subitem " + j },
+ openedItemId + "-" + j);
treetable.setParent(openedItemId + "-" + j,
openedItemId);
}
@@ -37,7 +38,7 @@ public class AddNodesOnExpand extends TestBase {
});
for (int i = 0; i < 3; i++) {
- treetable.addItem(Integer.valueOf(i));
+ treetable.addItem(new String[] { "Item " + i }, Integer.valueOf(i));
}
addComponent(treetable);