]> source.dussan.org Git - vaadin-framework.git/commitdiff
Vaadin 7 triggers a few more repaints than Vaadin 6
authorArtur Signell <artur@vaadin.com>
Wed, 11 Apr 2012 18:51:36 +0000 (21:51 +0300)
committerArtur Signell <artur@vaadin.com>
Thu, 12 Apr 2012 06:58:43 +0000 (09:58 +0300)
tests/server-side/com/vaadin/tests/server/component/textfield/TextFieldWithPropertyFormatter.java

index 75905ca42e597314e44cae6882d2148bcea93596..0749dc299e4fe0b1c01173c7dc396cc890d9213b 100644 (file)
@@ -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());