diff options
author | Artur Signell <artur@vaadin.com> | 2012-09-04 16:22:19 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-09-09 11:23:15 +0300 |
commit | 41a73c169083ee510ca02204580d487eca5c35d1 (patch) | |
tree | 8b5d3214756518bbac6ee716b93eb8dfabdcc466 /server/tests/src | |
parent | 789c9c85caecde140d696edeeac4a01f64c7f5a3 (diff) | |
download | vaadin-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.java | 4 |
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()); |