diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2011-04-18 14:10:49 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2011-04-18 14:10:49 +0000 |
commit | 8261119748530ec2638320a9fcfc2bc634c6b278 (patch) | |
tree | 4a070cffcdbeef48c348621d0a0cbbe53653bb95 /tests | |
parent | 918901fe0464af1f1f96cb5fcfc9e9390e050754 (diff) | |
download | vaadin-framework-8261119748530ec2638320a9fcfc2bc634c6b278.tar.gz vaadin-framework-8261119748530ec2638320a9fcfc2bc634c6b278.zip |
svn changeset:18358/svn branch:6.5
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/com/vaadin/tests/components/textfield/TextChangeEventsEternalLoop.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/src/com/vaadin/tests/components/textfield/TextChangeEventsEternalLoop.java b/tests/src/com/vaadin/tests/components/textfield/TextChangeEventsEternalLoop.java new file mode 100644 index 0000000000..22348bb5b5 --- /dev/null +++ b/tests/src/com/vaadin/tests/components/textfield/TextChangeEventsEternalLoop.java @@ -0,0 +1,32 @@ +package com.vaadin.tests.components.textfield; + +import com.vaadin.event.FieldEvents.TextChangeEvent; +import com.vaadin.event.FieldEvents.TextChangeListener; +import com.vaadin.tests.components.TestBase; +import com.vaadin.ui.TextField; + +public class TextChangeEventsEternalLoop extends TestBase { + @Override + protected void setup() { + + final TextField tf = new TextField("Debug"); + getLayout().addComponent(tf); + + tf.addListener(new TextChangeListener() { + public void textChange(TextChangeEvent event) { + tf.setValue(event.getText()); + } + }); + } + + @Override + protected String getDescription() { + return "Moving current text to value in text change listener should not cause eternal loop."; + } + + @Override + protected Integer getTicketNumber() { + return 6376; + } + +}
\ No newline at end of file |