]> source.dussan.org Git - vaadin-framework.git/commitdiff
Properly init client-side data in GridDataChangeHandlerTest
authorTeemu Suo-Anttila <teemusa@vaadin.com>
Tue, 16 May 2017 12:01:03 +0000 (15:01 +0300)
committerHenri Sara <henri.sara@gmail.com>
Tue, 16 May 2017 12:35:17 +0000 (15:35 +0300)
uitest/src/main/java/com/vaadin/tests/widgetset/client/grid/GridDataChangeHandlerWidget.java

index 35562c90002e98fdccf28893d4fb19a082c4eb69..deeb7a5807c8de4044d9845293b77a27c54784db 100644 (file)
@@ -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() {