Преглед на файлове

Make test pass on all browsers

Change-Id: I8226ce8983eb72e0afb4948fc644cb587bc01708
tags/7.7.2
Artur Signell преди 7 години
родител
ревизия
815d72115d
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5
    1
      uitest/src/test/java/com/vaadin/tests/components/grid/GridApplyFilterWhenScrolledDownTest.java

+ 5
- 1
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);
}
}

Loading…
Отказ
Запис