Browse Source

Make test pass on all browsers

Change-Id: I8226ce8983eb72e0afb4948fc644cb587bc01708
tags/7.7.2
Artur Signell 7 years ago
parent
commit
815d72115d

+ 5
- 1
uitest/src/test/java/com/vaadin/tests/components/grid/GridApplyFilterWhenScrolledDownTest.java View File

@@ -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);
}
}

Loading…
Cancel
Save