summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2017-05-16 15:01:03 +0300
committerHenri Sara <henri.sara@gmail.com>2017-05-16 15:35:17 +0300
commitbac4c82d5258202caa3dfde2554e726a26439adc (patch)
treeff0233648015860fbfc01ad7f4029427b8a42225
parent9c58a56ffe102082afcee9c55825612711b2530b (diff)
downloadvaadin-framework-bac4c82d5258202caa3dfde2554e726a26439adc.tar.gz
vaadin-framework-bac4c82d5258202caa3dfde2554e726a26439adc.zip
Properly init client-side data in GridDataChangeHandlerTest
-rw-r--r--uitest/src/main/java/com/vaadin/tests/widgetset/client/grid/GridDataChangeHandlerWidget.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/widgetset/client/grid/GridDataChangeHandlerWidget.java b/uitest/src/main/java/com/vaadin/tests/widgetset/client/grid/GridDataChangeHandlerWidget.java
index 35562c9000..deeb7a5807 100644
--- a/uitest/src/main/java/com/vaadin/tests/widgetset/client/grid/GridDataChangeHandlerWidget.java
+++ b/uitest/src/main/java/com/vaadin/tests/widgetset/client/grid/GridDataChangeHandlerWidget.java
@@ -64,6 +64,8 @@ public class GridDataChangeHandlerWidget extends Composite {
public RemoteDelayedDataSource(List<String> datasource) {
super();
rows = datasource;
+ // Make Grid request not exceed actual size.
+ resetDataAndSize(rows.size());
}
@Override
@@ -85,7 +87,6 @@ public class GridDataChangeHandlerWidget extends Composite {
public Object getRowKey(String row) {
return row;
}
-
}
public GridDataChangeHandlerWidget() {