aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2017-05-16 15:01:03 +0300
committerTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2017-07-11 10:01:02 +0300
commitd3fb3290faa99af450ad17913627a15899345de3 (patch)
tree1d1a9d97923c8a128dfbd66ec65b03bc58b3f247
parent25c8d68c819ceabdffc472547e9c86efcbc5867f (diff)
downloadvaadin-framework-d3fb3290faa99af450ad17913627a15899345de3.tar.gz
vaadin-framework-d3fb3290faa99af450ad17913627a15899345de3.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() {