diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-01-27 12:54:04 +0200 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-01-27 13:09:58 +0200 |
commit | a6cb362fa4564d32020d78cc1444bd8a1ec44ff6 (patch) | |
tree | be5336ea08b51e551a67e8fe0112cc2d09742120 /uitest/src/com | |
parent | c1149e055871365fcf280bfcd4f1adc4439deb84 (diff) | |
download | vaadin-framework-a6cb362fa4564d32020d78cc1444bd8a1ec44ff6.tar.gz vaadin-framework-a6cb362fa4564d32020d78cc1444bd8a1ec44ff6.zip |
Disable and restore editor and scroll locking on setEnabled (#16502)
Change-Id: I26b612f5a412c4e056d02799ab8f83429ab46cac
Diffstat (limited to 'uitest/src/com')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridEditorTest.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridEditorTest.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridEditorTest.java index 97a59291ed..0218fffe61 100644 --- a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridEditorTest.java +++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridEditorTest.java @@ -232,4 +232,28 @@ public class GridEditorTest extends GridBasicFeaturesTest { assertEquals("Grid shouldn't scroll vertically while editing", originalScrollPos, getGridVerticalScrollPos()); } + + @Test + public void testEditorInDisabledGrid() { + int originalScrollPos = getGridVerticalScrollPos(); + + selectMenuPath(EDIT_ITEM_5); + assertEditorOpen(); + + selectMenuPath("Component", "State", "Enabled"); + assertEditorOpen(); + + GridEditorElement editor = getGridElement().getEditor(); + editor.save(); + assertEditorOpen(); + + editor.cancel(); + assertEditorOpen(); + + selectMenuPath("Component", "State", "Enabled"); + + scrollGridVerticallyTo(100); + assertEquals("Grid shouldn't scroll vertically while editing", + originalScrollPos, getGridVerticalScrollPos()); + } } |