summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2014-12-29 13:17:57 +0200
committerTeemu Suo-Anttila <teemusa@vaadin.com>2014-12-29 13:17:57 +0200
commit0d93598759d2a1a95a25cc84e75cfa03f154590e (patch)
treec51fc6647ff4a99705cf96499008dc529148c997 /uitest
parent0937a50c9d99ca585cbc3e27fbfe3cbf7822f26e (diff)
downloadvaadin-framework-0d93598759d2a1a95a25cc84e75cfa03f154590e.tar.gz
vaadin-framework-0d93598759d2a1a95a25cc84e75cfa03f154590e.zip
Fix Grid columns being too narrow on IE9 (#15475)
Change-Id: Ifb46093ffb43a4fa03b051719f3480ef469b460e
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/com/vaadin/tests/components/grid/AbstractGridColumnAutoWidthTest.java13
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(