summaryrefslogtreecommitdiffstats
path: root/server/tests/src
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-02-21 00:12:09 +0200
committerVaadin Code Review <review@vaadin.com>2015-02-23 12:50:31 +0000
commit7a05a85dd10d2ca61c222943d5b1bc9963fd4987 (patch)
treeef1348d891742e7169123ecd70d353daadb4aa08 /server/tests/src
parent04b87d89360fa9b62dc10f9d399eef07d2491d50 (diff)
downloadvaadin-framework-7a05a85dd10d2ca61c222943d5b1bc9963fd4987.tar.gz
vaadin-framework-7a05a85dd10d2ca61c222943d5b1bc9963fd4987.zip
Make Column.setLastFrozenColumn work (#16726)
Change-Id: I58fee1549459b24cb47e0d3321d16fb8b215959a
Diffstat (limited to 'server/tests/src')
-rw-r--r--server/tests/src/com/vaadin/tests/server/component/grid/GridColumns.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/server/tests/src/com/vaadin/tests/server/component/grid/GridColumns.java b/server/tests/src/com/vaadin/tests/server/component/grid/GridColumns.java
index 06c1b14bb6..fda662e4d9 100644
--- a/server/tests/src/com/vaadin/tests/server/component/grid/GridColumns.java
+++ b/server/tests/src/com/vaadin/tests/server/component/grid/GridColumns.java
@@ -185,6 +185,25 @@ public class GridColumns {
}
@Test
+ public void testSetFrozenColumnCount() {
+ assertEquals("Grid should not start with a frozen column", 0,
+ grid.getFrozenColumnCount());
+ grid.setFrozenColumnCount(2);
+ assertEquals("Freezing two columns should freeze two columns", 2,
+ grid.getFrozenColumnCount());
+ }
+
+ @Test
+ public void testSetFrozenColumnCountThroughColumn() {
+ assertEquals("Grid should not start with a frozen column", 0,
+ grid.getFrozenColumnCount());
+ grid.getColumns().get(2).setLastFrozenColumn();
+ assertEquals(
+ "Setting the third column as last frozen should freeze three columns",
+ 3, grid.getFrozenColumnCount());
+ }
+
+ @Test
public void testFrozenColumnRemoveColumn() {
assertEquals("Grid should not start with a frozen column", 0,
grid.getFrozenColumnCount());