diff options
author | Johannes Tuikkala <johannes@vaadin.com> | 2017-04-20 12:42:52 +0300 |
---|---|---|
committer | Ilia Motornyi <elmot@vaadin.com> | 2017-04-20 11:42:52 +0200 |
commit | 779c260b674705a86235f76b5d38685b2062b193 (patch) | |
tree | 43aa4938866146054e615670a736122777ffd869 /uitest/src/test | |
parent | 2d9fb530cced8a4329a57293d308760b424af067 (diff) | |
download | vaadin-framework-779c260b674705a86235f76b5d38685b2062b193.tar.gz vaadin-framework-779c260b674705a86235f76b5d38685b2062b193.zip |
Fix removing rows over the cached range in Grid
Fixes #8840 for 7.7
Diffstat (limited to 'uitest/src/test')
-rw-r--r-- | uitest/src/test/java/com/vaadin/tests/components/grid/GridRemoveCachedRowsTest.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/uitest/src/test/java/com/vaadin/tests/components/grid/GridRemoveCachedRowsTest.java b/uitest/src/test/java/com/vaadin/tests/components/grid/GridRemoveCachedRowsTest.java new file mode 100644 index 0000000000..3c0f5b1110 --- /dev/null +++ b/uitest/src/test/java/com/vaadin/tests/components/grid/GridRemoveCachedRowsTest.java @@ -0,0 +1,39 @@ +/* + * Copyright 2000-2014 Vaadin Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.vaadin.tests.components.grid; + +import org.junit.Test; + +import com.vaadin.testbench.elements.ButtonElement; +import com.vaadin.tests.tb3.SingleBrowserTest; + +/** + * Verifies that there's no client side errors when removing a range of rows + * starting from the visible ones and ending into the cached ones. + */ +public class GridRemoveCachedRowsTest extends SingleBrowserTest { + + @Test + public void testNoClientExceptionWhenRemovingARangeOfRows() { + setDebug(true); + openTestURL(); + + // do remove a range of rows + $(ButtonElement.class).first().click(); + + assertNoErrorNotifications(); + } +} |