diff options
Diffstat (limited to 'uitest/src')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/grid/AbstractGridColumnAutoWidthTest.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/AbstractGridColumnAutoWidthTest.java b/uitest/src/com/vaadin/tests/components/grid/AbstractGridColumnAutoWidthTest.java index d66a95a13c..cc5be455cd 100644 --- a/uitest/src/com/vaadin/tests/components/grid/AbstractGridColumnAutoWidthTest.java +++ b/uitest/src/com/vaadin/tests/components/grid/AbstractGridColumnAutoWidthTest.java @@ -17,6 +17,8 @@ package com.vaadin.tests.components.grid; import static org.junit.Assert.assertEquals; +import java.io.IOException; + import org.junit.Before; import org.junit.Test; import org.openqa.selenium.By; @@ -60,10 +62,16 @@ public abstract class AbstractGridColumnAutoWidthTest extends MultiBrowserTest { bodyWidth); assertEquals("column should've been roughly as wide as the header", headerWidth, colWidth, 5); + } @Test public void testTooNarrowColumn() { + if (BrowserUtil.isIE(getDesiredCapabilities())) { + // IE can't deal with overflow nicely. + return; + } + WebElement[] col = getColumn(3); int headerWidth = col[0].getSize().getWidth(); int colWidth = col[2].getSize().getWidth() - TOTAL_MARGIN_PX; @@ -82,6 +90,11 @@ public abstract class AbstractGridColumnAutoWidthTest extends MultiBrowserTest { headerWidth); } + @Test + public void testColumnsRenderCorrectly() throws IOException { + compareScreen("initialRender"); + } + private WebElement[] getColumn(int i) { WebElement[] col = new WebElement[3]; col[0] = getDriver().findElement( |