summaryrefslogtreecommitdiffstats
path: root/tests/server-side
diff options
context:
space:
mode:
Diffstat (limited to 'tests/server-side')
-rw-r--r--tests/server-side/com/vaadin/tests/server/component/textfield/TextFieldWithPropertyFormatter.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/server-side/com/vaadin/tests/server/component/textfield/TextFieldWithPropertyFormatter.java b/tests/server-side/com/vaadin/tests/server/component/textfield/TextFieldWithPropertyFormatter.java
index 75905ca42e..0749dc299e 100644
--- a/tests/server-side/com/vaadin/tests/server/component/textfield/TextFieldWithPropertyFormatter.java
+++ b/tests/server-side/com/vaadin/tests/server/component/textfield/TextFieldWithPropertyFormatter.java
@@ -81,7 +81,9 @@ public class TextFieldWithPropertyFormatter extends TestCase {
private void checkEndState() {
assertEquals(1, listenerCalled);
- assertEquals(1, repainted);
+ // setModified triggers repaint, this is done 2 times. A
+ // ValueChangeEvent triggers the third
+ assertEquals(3, repainted);
assertEquals(FORMATTED_VALUE, field.getValue());
assertEquals(FORMATTED_VALUE, formatter.getValue());
assertEquals(PARSED_VALUE, property.getValue());