summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--uitest/src/com/vaadin/tests/components/table/TableRepairsScrollPositionOnReAddingAllRowsTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/uitest/src/com/vaadin/tests/components/table/TableRepairsScrollPositionOnReAddingAllRowsTest.java b/uitest/src/com/vaadin/tests/components/table/TableRepairsScrollPositionOnReAddingAllRowsTest.java
index 807a80d182..2fbdd8b581 100644
--- a/uitest/src/com/vaadin/tests/components/table/TableRepairsScrollPositionOnReAddingAllRowsTest.java
+++ b/uitest/src/com/vaadin/tests/components/table/TableRepairsScrollPositionOnReAddingAllRowsTest.java
@@ -15,8 +15,8 @@
*/
package com.vaadin.tests.components.table;
-import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.number.IsCloseTo.closeTo;
import org.junit.Test;
import org.openqa.selenium.By;
@@ -58,9 +58,10 @@ public class TableRepairsScrollPositionOnReAddingAllRowsTest extends
row = $(TableElement.class).first().getCell(49, 0);
int newRowLocation = row.getLocation().getY();
+ // ranged check because IE9 consistently misses the mark by 1 pixel
assertThat(
"Scroll position should be the same as before Re-Adding all rows",
- rowLocation == newRowLocation, is(true));
+ (double) newRowLocation, closeTo(rowLocation, 1));
}
private void scrollUp() {