From 20e2a3b5eefa03b2d4db8af15e30d1958bc7047f Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Mon, 7 Jul 2014 12:07:43 +0300 Subject: [PATCH] Fix GridSingleColumnTest & CustomRendererTest Change-Id: Ifa789542441e2560a57afe372c6b94d5d9e6b7e6 --- uitest/src/com/vaadin/tests/components/grid/CustomRenderer.java | 2 ++ .../src/com/vaadin/tests/components/grid/GridSingleColumn.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/uitest/src/com/vaadin/tests/components/grid/CustomRenderer.java b/uitest/src/com/vaadin/tests/components/grid/CustomRenderer.java index 9ac1a03df3..d217829bcb 100644 --- a/uitest/src/com/vaadin/tests/components/grid/CustomRenderer.java +++ b/uitest/src/com/vaadin/tests/components/grid/CustomRenderer.java @@ -24,6 +24,7 @@ import com.vaadin.tests.components.AbstractTestUI; import com.vaadin.tests.widgetset.TestingWidgetSet; import com.vaadin.ui.Label; import com.vaadin.ui.components.grid.Grid; +import com.vaadin.ui.components.grid.Grid.SelectionMode; @Widgetset(TestingWidgetSet.NAME) public class CustomRenderer extends AbstractTestUI { @@ -56,6 +57,7 @@ public class CustomRenderer extends AbstractTestUI { grid.getColumn(INT_ARRAY_PROPERTY).setRenderer(new IntArrayRenderer()); grid.getColumn(VOID_PROPERTY).setRenderer( new RowAwareRenderer(debugLabel)); + grid.setSelectionMode(SelectionMode.NONE); addComponent(grid); addComponent(debugLabel); } diff --git a/uitest/src/com/vaadin/tests/components/grid/GridSingleColumn.java b/uitest/src/com/vaadin/tests/components/grid/GridSingleColumn.java index 56fe904093..75b83ea3aa 100644 --- a/uitest/src/com/vaadin/tests/components/grid/GridSingleColumn.java +++ b/uitest/src/com/vaadin/tests/components/grid/GridSingleColumn.java @@ -20,6 +20,7 @@ import com.vaadin.data.util.IndexedContainer; import com.vaadin.server.VaadinRequest; import com.vaadin.tests.components.AbstractTestUI; import com.vaadin.ui.components.grid.Grid; +import com.vaadin.ui.components.grid.Grid.SelectionMode; import com.vaadin.ui.components.grid.GridColumn; public class GridSingleColumn extends AbstractTestUI { @@ -36,6 +37,7 @@ public class GridSingleColumn extends AbstractTestUI { } Grid grid = new Grid(indexedContainer); + grid.setSelectionMode(SelectionMode.NONE); GridColumn column = grid.getColumn("column1"); -- 2.39.5