summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2011-09-22 11:14:59 +0000
committerLeif Åstrand <leif@vaadin.com>2011-09-22 11:14:59 +0000
commit7f4a167c7d79c4da0039a3af5bc0c73b84fd4a78 (patch)
tree992da14ae4645bf6f988bfa8f828746db96d36c3 /tests
parent34f4814739c0cf2ced4b38b609b25e11756fad9b (diff)
downloadvaadin-framework-7f4a167c7d79c4da0039a3af5bc0c73b84fd4a78.tar.gz
vaadin-framework-7f4a167c7d79c4da0039a3af5bc0c73b84fd4a78.zip
Don't send a partial row update the first time the component is painted (#7605)
svn changeset:21233/svn branch:6.7
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/vaadin/tests/components/treetable/TreeTableSetCollapsed.html10
-rw-r--r--tests/src/com/vaadin/tests/components/treetable/TreeTableSetCollapsed.java12
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/src/com/vaadin/tests/components/treetable/TreeTableSetCollapsed.html b/tests/src/com/vaadin/tests/components/treetable/TreeTableSetCollapsed.html
index e06068c816..5c878dba42 100644
--- a/tests/src/com/vaadin/tests/components/treetable/TreeTableSetCollapsed.html
+++ b/tests/src/com/vaadin/tests/components/treetable/TreeTableSetCollapsed.html
@@ -21,6 +21,16 @@
<td>vaadin=runcomvaadintestscomponentstreetableTreeTableSetCollapsed::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VTreeTable[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[0]</td>
<td></td>
</tr>
+<tr>
+ <td>click</td>
+ <td>vaadin=runcomvaadintestscomponentstreetableTreeTableSetCollapsed::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[1]/VButton[0]/domChild[0]/domChild[0]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>assertElementPresent</td>
+ <td>vaadin=runcomvaadintestscomponentstreetableTreeTableSetCollapsed::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[2]/VTreeTable[0]/domChild[1]</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
</html>
diff --git a/tests/src/com/vaadin/tests/components/treetable/TreeTableSetCollapsed.java b/tests/src/com/vaadin/tests/components/treetable/TreeTableSetCollapsed.java
index 3dd0723722..2a14c946f3 100644
--- a/tests/src/com/vaadin/tests/components/treetable/TreeTableSetCollapsed.java
+++ b/tests/src/com/vaadin/tests/components/treetable/TreeTableSetCollapsed.java
@@ -1,12 +1,24 @@
package com.vaadin.tests.components.treetable;
import com.vaadin.tests.components.TestBase;
+import com.vaadin.ui.Button;
+import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.TreeTable;
public class TreeTableSetCollapsed extends TestBase {
@Override
protected void setup() {
+ createTreeTableAndPopulate();
+ addComponent(new Button("Create another TreeTable",
+ new Button.ClickListener() {
+ public void buttonClick(ClickEvent event) {
+ createTreeTableAndPopulate();
+ }
+ }));
+ }
+
+ private void createTreeTableAndPopulate() {
TreeTable tt = new TreeTable();
tt.addContainerProperty("Foo", String.class, "");
tt.addContainerProperty("Bar", String.class, "");