diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-02-09 16:25:24 +0200 |
---|---|---|
committer | Johannes Dahlström <johannesd@vaadin.com> | 2015-02-13 13:50:00 +0000 |
commit | 78e5cb1a9606402ff087196cc15cbcf7f17263ac (patch) | |
tree | cafbf8760146c4bc718233d3ac07106530e8569c /uitest/src/com/vaadin/tests/components | |
parent | af6dd56e89db8ea8c88f607c4214abcde50dfc94 (diff) | |
download | vaadin-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.java | 12 |
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(); |