diff options
author | Mika Murtojärvi <mika@vaadin.com> | 2015-06-17 07:56:55 +0000 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2015-06-17 08:00:36 +0000 |
commit | 3a8b97e3697fb7df0c3f54f813e2018168ef05a7 (patch) | |
tree | 618bd00fdd404e683da7f37f7e770f59b368a288 /uitest | |
parent | 6c759028b2e4edf5280fb66517c8fe1c7660ecf8 (diff) | |
download | vaadin-framework-3a8b97e3697fb7df0c3f54f813e2018168ef05a7.tar.gz vaadin-framework-3a8b97e3697fb7df0c3f54f813e2018168ef05a7.zip |
Revert "Prevent field from updating when removing text change listener. (#16270)"
This reverts commit 4af793d06a0f4a6577aad13403ca7982c6fce224.
Test ConverterThatEnforcesAFormatTest.checkElaborating is broken by this change.
Change-Id: I8243f6a7bff6d7011d402bce4b614f7d2e4206fd
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/textfield/RemoveTextChangeListener.java | 32 | ||||
-rw-r--r-- | uitest/src/com/vaadin/tests/components/textfield/RemoveTextChangeListenerTest.java | 24 |
2 files changed, 0 insertions, 56 deletions
diff --git a/uitest/src/com/vaadin/tests/components/textfield/RemoveTextChangeListener.java b/uitest/src/com/vaadin/tests/components/textfield/RemoveTextChangeListener.java deleted file mode 100644 index 339160e6ff..0000000000 --- a/uitest/src/com/vaadin/tests/components/textfield/RemoveTextChangeListener.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.vaadin.tests.components.textfield; - -import com.vaadin.event.FieldEvents; -import com.vaadin.server.VaadinRequest; -import com.vaadin.tests.components.AbstractTestUI; -import com.vaadin.ui.TextField; - -public class RemoveTextChangeListener extends AbstractTestUI { - @Override - protected void setup(VaadinRequest request) { - final TextField textfield = new TextField(); - - textfield.addTextChangeListener(new FieldEvents.TextChangeListener() { - @Override - public void textChange(FieldEvents.TextChangeEvent event) { - textfield.removeTextChangeListener(this); - } - }); - - addComponent(textfield); - } - - @Override - protected Integer getTicketNumber() { - return 16270; - } - - @Override - protected String getTestDescription() { - return "Removing text change listener on text change event should not reset the input."; - } -} diff --git a/uitest/src/com/vaadin/tests/components/textfield/RemoveTextChangeListenerTest.java b/uitest/src/com/vaadin/tests/components/textfield/RemoveTextChangeListenerTest.java deleted file mode 100644 index 0b876864bc..0000000000 --- a/uitest/src/com/vaadin/tests/components/textfield/RemoveTextChangeListenerTest.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.vaadin.tests.components.textfield; - -import static org.hamcrest.CoreMatchers.is; -import static org.hamcrest.MatcherAssert.assertThat; - -import org.junit.Test; - -import com.vaadin.testbench.elements.TextFieldElement; -import com.vaadin.tests.tb3.MultiBrowserTest; - -public class RemoveTextChangeListenerTest extends MultiBrowserTest { - - @Test - public void serverValueIsUpdated() { - openTestURL(); - - TextFieldElement textfield = $(TextFieldElement.class).first(); - - textfield.sendKeys("f"); - - assertThat(textfield.getValue(), is("f")); - } - -}
\ No newline at end of file |