aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/components
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2015-02-09 16:25:24 +0200
committerJohannes Dahlström <johannesd@vaadin.com>2015-02-13 13:50:00 +0000
commit78e5cb1a9606402ff087196cc15cbcf7f17263ac (patch)
treecafbf8760146c4bc718233d3ac07106530e8569c /uitest/src/com/vaadin/tests/components
parentaf6dd56e89db8ea8c88f607c4214abcde50dfc94 (diff)
downloadvaadin-framework-78e5cb1a9606402ff087196cc15cbcf7f17263ac.tar.gz
vaadin-framework-78e5cb1a9606402ff087196cc15cbcf7f17263ac.zip
Fix RpcDataProviderExtension value change listener setup (#16550)
This patch changes value change listener mapping from itemid based to index based mapping. This makes removing rows much less error prone Change-Id: I77e9078de4ae61ce5d752cc394aa47bccd505e70
Diffstat (limited to 'uitest/src/com/vaadin/tests/components')
-rw-r--r--uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridStructureTest.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridStructureTest.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridStructureTest.java
index 08f903b3fe..e83031f227 100644
--- a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridStructureTest.java
+++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridStructureTest.java
@@ -233,6 +233,18 @@ public class GridStructureTest extends GridBasicFeaturesTest {
}
@Test
+ public void testRemoveFirstRowTwice() {
+ openTestURL();
+
+ selectMenuPath("Component", "Body rows", "Remove first row");
+ selectMenuPath("Component", "Body rows", "Remove first row");
+
+ getGridElement().scrollToRow(50);
+ assertFalse("Listener setup problem occurred.",
+ logContainsText("AssertionError: Value change listeners"));
+ }
+
+ @Test
public void testVerticalScrollBarVisibilityWhenEnoughRows()
throws Exception {
openTestURL();