aboutsummaryrefslogtreecommitdiffstats
path: root/server/tests/src
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-09-04 16:22:19 +0300
committerArtur Signell <artur@vaadin.com>2012-09-09 11:23:15 +0300
commit41a73c169083ee510ca02204580d487eca5c35d1 (patch)
tree8b5d3214756518bbac6ee716b93eb8dfabdcc466 /server/tests/src
parent789c9c85caecde140d696edeeac4a01f64c7f5a3 (diff)
downloadvaadin-framework-41a73c169083ee510ca02204580d487eca5c35d1.tar.gz
vaadin-framework-41a73c169083ee510ca02204580d487eca5c35d1.zip
Assert field is dirty, does not matter how many times it has been marked
Diffstat (limited to 'server/tests/src')
-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());