summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorJohannes Dahlström <johannesd@vaadin.com>2016-01-04 15:05:59 +0200
committerHenri Sara <hesara@vaadin.com>2016-01-07 11:16:22 +0000
commit15e9a428214dc1933844da3b514d49f418351051 (patch)
tree9cf1547393b12abd1cd43d1bbfad23184b581ad1 /uitest
parentc7520351fef14334aa80305853afe7dcfff8609f (diff)
downloadvaadin-framework-15e9a428214dc1933844da3b514d49f418351051.tar.gz
vaadin-framework-15e9a428214dc1933844da3b514d49f418351051.zip
Always stick Grid column resize handle to the right edge (#19409)
Change-Id: I329bc5ae8138be731770211e995225cb3ca4fc76
Diffstat (limited to 'uitest')
-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);