summaryrefslogtreecommitdiffstats
path: root/uitest/src
diff options
context:
space:
mode:
authorJohannes Dahlström <johannesd@vaadin.com>2016-01-04 15:05:59 +0200
committerTeemu Suo-Anttila <teemusa@vaadin.com>2016-01-08 13:48:23 +0200
commit92110e3ec54d246b34bc3ab215195915a7452a77 (patch)
tree2a098032f9d30fff461ce2584a0f90b8125249c9 /uitest/src
parent06010a2e8e7bbe475f95767ec123c37642ad1698 (diff)
downloadvaadin-framework-92110e3ec54d246b34bc3ab215195915a7452a77.tar.gz
vaadin-framework-92110e3ec54d246b34bc3ab215195915a7452a77.zip
Always stick Grid column resize handle to the right edge (#19409)
Change-Id: Id9d667257e10d989dd7bda8032a69720f08174ac
Diffstat (limited to 'uitest/src')
-rw-r--r--uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridColumnResizeTest.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridColumnResizeTest.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridColumnResizeTest.java
index 5253e0fff9..7fdf7acbab 100644
--- a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridColumnResizeTest.java
+++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridColumnResizeTest.java
@@ -101,6 +101,21 @@ public class GridColumnResizeTest extends GridBasicFeaturesTest {
}
}
+ @Test
+ public void testResizeWithWidgetHeader() {
+ selectMenuPath("Component", "Columns", "Column 0", "Column 0 Width",
+ "250px");
+ selectMenuPath("Component", "Columns", "Column 0", "Header Type",
+ "Widget Header");
+
+ // IE9 and IE10 sometimes have a 1px gap between resize handle parts, so
+ // using posX 1px
+ dragResizeColumn(0, 1, 10);
+
+ assertTrue("Log should contain a resize event",
+ logContainsText("ColumnResizeEvent: isUserOriginated? true"));
+ }
+
private void dragResizeColumn(int columnIndex, int posX, int offset) {
GridCellElement headerCell = getGridElement().getHeaderCell(0,
columnIndex);