From: Artur Signell Date: Wed, 11 Apr 2012 18:51:36 +0000 (+0300) Subject: Vaadin 7 triggers a few more repaints than Vaadin 6 X-Git-Tag: 7.0.0.alpha2~70 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6c79839c1221c8fb3385fd546bcb1be011053cc6;p=vaadin-framework.git Vaadin 7 triggers a few more repaints than Vaadin 6 --- 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());