From: Artur Signell Date: Wed, 14 Sep 2016 11:44:01 +0000 (+0300) Subject: Make test pass on all browsers X-Git-Tag: 7.7.2~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=815d72115d5aaf3676daefd5642115577e4151ef;p=vaadin-framework.git Make test pass on all browsers Change-Id: I8226ce8983eb72e0afb4948fc644cb587bc01708 --- diff --git a/uitest/src/test/java/com/vaadin/tests/components/grid/GridApplyFilterWhenScrolledDownTest.java b/uitest/src/test/java/com/vaadin/tests/components/grid/GridApplyFilterWhenScrolledDownTest.java index 279cf8ef95..ca77668c17 100644 --- a/uitest/src/test/java/com/vaadin/tests/components/grid/GridApplyFilterWhenScrolledDownTest.java +++ b/uitest/src/test/java/com/vaadin/tests/components/grid/GridApplyFilterWhenScrolledDownTest.java @@ -34,7 +34,11 @@ public class GridApplyFilterWhenScrolledDownTest extends MultiBrowserTest { .get(0); Assert.assertEquals("Test", cell.getText()); + int gridHeight = grid.getSize().getHeight(); + int scrollerHeight = grid.getVerticalScroller().getSize().getHeight(); Assert.assertTrue( - grid.getVerticalScroller().getSize().getHeight() < 100); + "Scroller height is " + scrollerHeight + + ", should be smaller than grid height: " + gridHeight, + scrollerHeight < gridHeight); } }