]> source.dussan.org Git - vaadin-framework.git/commitdiff
Assert field is dirty, does not matter how many times it has been marked
authorArtur Signell <artur@vaadin.com>
Tue, 4 Sep 2012 13:22:19 +0000 (16:22 +0300)
committerArtur Signell <artur@vaadin.com>
Sun, 9 Sep 2012 08:23:15 +0000 (11:23 +0300)
server/tests/src/com/vaadin/tests/server/component/textfield/TextFieldWithPropertyFormatter.java

index 4bb0177a186f313d1df3b358bbe4b9ce41de22ef..59922d819f48ebf342a35c0785c40b7ddf24e50b 100644 (file)
@@ -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());