summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/tests/src/com/vaadin/tests/server/component/textfield/TextFieldWithPropertyFormatter.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/server/tests/src/com/vaadin/tests/server/component/textfield/TextFieldWithPropertyFormatter.java b/server/tests/src/com/vaadin/tests/server/component/textfield/TextFieldWithPropertyFormatter.java
index 4bb0177a18..59922d819f 100644
--- a/server/tests/src/com/vaadin/tests/server/component/textfield/TextFieldWithPropertyFormatter.java
+++ b/server/tests/src/com/vaadin/tests/server/component/textfield/TextFieldWithPropertyFormatter.java
@@ -81,9 +81,7 @@ public class TextFieldWithPropertyFormatter extends TestCase {
private void checkEndState() {
assertEquals(1, listenerCalled);
- // setModified triggers repaint, this is done 2 times. A
- // ValueChangeEvent triggers the third
- assertEquals(3, repainted);
+ assertTrue(repainted >= 1);
assertEquals(FORMATTED_VALUE, field.getValue());
assertEquals(FORMATTED_VALUE, formatter.getValue());
assertEquals(PARSED_VALUE, property.getValue());