aboutsummaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorAnna Koskinen <Ansku@users.noreply.github.com>2020-05-13 18:44:33 +0300
committerGitHub <noreply@github.com>2020-05-13 18:44:33 +0300
commita967bd7fdcde8dce5bbf3c27110d353064a9d426 (patch)
tree2bd0999e7fb0d3d67ef1290e65044d1d76e6b9e6 /uitest
parent66a8fb1c384afd9590aa2327ddd1d238c771e474 (diff)
downloadvaadin-framework-a967bd7fdcde8dce5bbf3c27110d353064a9d426.tar.gz
vaadin-framework-a967bd7fdcde8dce5bbf3c27110d353064a9d426.zip
Fix indexing issue in Compatibility Grid resize when scrolled to bottom. (#12003)
Issue #11893, cherry-pick from #11984
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/main/java/com/vaadin/tests/components/grid/CompatibilityGridScrollDownResize.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/components/grid/CompatibilityGridScrollDownResize.java b/uitest/src/main/java/com/vaadin/tests/components/grid/CompatibilityGridScrollDownResize.java
new file mode 100644
index 0000000000..973598f18f
--- /dev/null
+++ b/uitest/src/main/java/com/vaadin/tests/components/grid/CompatibilityGridScrollDownResize.java
@@ -0,0 +1,34 @@
+package com.vaadin.tests.components.grid;
+
+import com.vaadin.server.VaadinRequest;
+import com.vaadin.tests.components.AbstractTestUI;
+import com.vaadin.tests.minitutorials.v7_4.GridExampleHelper;
+import com.vaadin.ui.VerticalLayout;
+import com.vaadin.v7.ui.Grid;
+
+public class CompatibilityGridScrollDownResize extends AbstractTestUI {
+
+ @Override
+ protected void setup(VaadinRequest request) {
+ // container with at least 100 rows
+ final Grid grid = new Grid(GridExampleHelper.createContainer());
+ grid.setSizeFull();
+ addComponent(grid);
+ getLayout().setSizeFull();
+ getLayout().setExpandRatio(grid, 2);
+ ((VerticalLayout) getLayout().getParent()).setSizeFull();
+ }
+
+ @Override
+ protected Integer getTicketNumber() {
+ return 11893;
+ };
+
+ @Override
+ protected String getTestDescription() {
+ return "Scrolling all the way down, resizing the browser window smaller "
+ + "so that one row gets completely hidden, and scrolling down "
+ + "again should keep the row contents consistent and in expected "
+ + "sequence.";
+ }
+}