aboutsummaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorPekka Hyvönen <pekka@vaadin.com>2015-03-31 12:03:56 +0300
committerMarkus Koivisto <markus@vaadin.com>2015-04-15 11:33:52 +0300
commit9a940720e234ad9f52af3620c676a6af3fcbe03c (patch)
treebcc23db870789424dbe2dfd396b47941fa8337cb /uitest
parent445b14801073025005d22a64d372c455987a604d (diff)
downloadvaadin-framework-9a940720e234ad9f52af3620c676a6af3fcbe03c.tar.gz
vaadin-framework-9a940720e234ad9f52af3620c676a6af3fcbe03c.zip
Don't remove frozen columns when columns reordered in Grid #16901
Change-Id: Ib812ecd6afeb92d56bb179bcb120c65f20d26a8c
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/com/vaadin/tests/components/grid/basicfeatures/client/GridClientColumnPropertiesTest.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/client/GridClientColumnPropertiesTest.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/client/GridClientColumnPropertiesTest.java
index 9e7256e0d3..2f5d0e7291 100644
--- a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/client/GridClientColumnPropertiesTest.java
+++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/client/GridClientColumnPropertiesTest.java
@@ -94,6 +94,23 @@ public class GridClientColumnPropertiesTest extends GridBasicClientFeaturesTest
}
@Test
+ public void testFrozenColumns_columnsReordered_frozenColumnsKept() {
+ openTestURL();
+
+ selectMenuPath("Component", "State", "Frozen column count", "2 columns");
+
+ assertTrue(cellIsFrozen(1, 0));
+ assertTrue(cellIsFrozen(1, 1));
+ assertFalse(cellIsFrozen(1, 2));
+
+ selectMenuPath("Component", "State", "Reverse grid columns");
+
+ assertTrue(cellIsFrozen(1, 0));
+ assertTrue(cellIsFrozen(1, 1));
+ assertFalse(cellIsFrozen(1, 2));
+ }
+
+ @Test
public void testBrokenRenderer() {
setDebug(true);
openTestURL();