From bac4c82d5258202caa3dfde2554e726a26439adc Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Tue, 16 May 2017 15:01:03 +0300 Subject: [PATCH] Properly init client-side data in GridDataChangeHandlerTest --- .../widgetset/client/grid/GridDataChangeHandlerWidget.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 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() { -- 2.39.5