diff options
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridDefaultTextRendererTest.java | 8 | ||||
-rw-r--r-- | uitest/src/com/vaadin/tests/widgetset/client/grid/GridDefaultTextRendererWidget.java | 10 |
2 files changed, 17 insertions, 1 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridDefaultTextRendererTest.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridDefaultTextRendererTest.java index cd31bfc860..79eadd03d8 100644 --- a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridDefaultTextRendererTest.java +++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridDefaultTextRendererTest.java @@ -22,6 +22,7 @@ import static org.junit.Assert.assertTrue; import org.junit.Before; import org.junit.Test; +import com.vaadin.testbench.By; import com.vaadin.testbench.elements.GridElement; import com.vaadin.testbench.elements.NotificationElement; import com.vaadin.testbench.elements.ServerClass; @@ -40,6 +41,7 @@ public class GridDefaultTextRendererTest extends MultiBrowserTest { @Before public void init() { + setDebug(true); openTestURL(); grid = $(MyGridElement.class).first(); assertFalse("There was an unexpected notification during init", @@ -57,4 +59,10 @@ public class GridDefaultTextRendererTest extends MultiBrowserTest { assertEquals("Second cell should've been populated ", "string", grid .getCell(1, 0).getText()); } + + @Test + public void testWarningShouldNotBeInDebugLog() { + assertFalse("Warning visible with string content.", + isElementPresent(By.xpath("//span[contains(.,'attached:#1')]"))); + } } diff --git a/uitest/src/com/vaadin/tests/widgetset/client/grid/GridDefaultTextRendererWidget.java b/uitest/src/com/vaadin/tests/widgetset/client/grid/GridDefaultTextRendererWidget.java index 173ae097ed..4f1ea48be5 100644 --- a/uitest/src/com/vaadin/tests/widgetset/client/grid/GridDefaultTextRendererWidget.java +++ b/uitest/src/com/vaadin/tests/widgetset/client/grid/GridDefaultTextRendererWidget.java @@ -47,10 +47,18 @@ public class GridDefaultTextRendererWidget extends } }); + grid.addColumn(new Column<String, String>() { + + @Override + public String getValue(String row) { + return "foo"; + } + + }); + grid.setHeightByRows(2); grid.setHeightMode(HeightMode.ROW); grid.setSelectionMode(SelectionMode.NONE); addNorth(grid, 500); } - } |