summaryrefslogtreecommitdiffstats
path: root/tests/server-side
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-04-11 21:51:36 +0300
committerArtur Signell <artur@vaadin.com>2012-04-12 09:58:43 +0300
commit6c79839c1221c8fb3385fd546bcb1be011053cc6 (patch)
treef7761e0acb24bb92f30f871a840dc54c7671da00 /tests/server-side
parente10def58c8f5df861326192b59e8a1d7dfe97585 (diff)
downloadvaadin-framework-6c79839c1221c8fb3385fd546bcb1be011053cc6.tar.gz
vaadin-framework-6c79839c1221c8fb3385fd546bcb1be011053cc6.zip
Vaadin 7 triggers a few more repaints than Vaadin 6
Diffstat (limited to 'tests/server-side')
-rw-r--r--tests/server-side/com/vaadin/tests/server/component/textfield/TextFieldWithPropertyFormatter.java4
1 files changed, 3 insertions, 1 deletions
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());