diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2017-05-16 15:01:03 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2017-07-11 10:01:02 +0300 |
commit | d3fb3290faa99af450ad17913627a15899345de3 (patch) | |
tree | 1d1a9d97923c8a128dfbd66ec65b03bc58b3f247 | |
parent | 25c8d68c819ceabdffc472547e9c86efcbc5867f (diff) | |
download | vaadin-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.java | 3 |
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() { |