diff options
author | Artur Signell <artur@vaadin.com> | 2015-01-21 08:43:33 +0000 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-01-21 09:03:20 +0000 |
commit | f818f7cb44fc77db7252e97c78608ae6c67d6ab6 (patch) | |
tree | f0e2f2cf23fdd4479cf0b578fc9e2537aa0b2829 /uitest/src/com/vaadin/tests/components/textfield | |
parent | 5de08c952a7d94792b72cf551c3b79a2f058b865 (diff) | |
download | vaadin-framework-f818f7cb44fc77db7252e97c78608ae6c67d6ab6.tar.gz vaadin-framework-f818f7cb44fc77db7252e97c78608ae6c67d6ab6.zip |
Revert "Update text value also with timer triggered text change events. (#16270)"
This reverts commit c8d4c9e8cf1fa869c89751dc9a9b55f9be64773f.
Change-Id: I73f19e80aef0fe37231ec5c261e0901e6bbd2d99
Diffstat (limited to 'uitest/src/com/vaadin/tests/components/textfield')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/textfield/TimerTriggeredTextChangeEvent.java | 40 | ||||
-rw-r--r-- | uitest/src/com/vaadin/tests/components/textfield/TimerTriggeredTextChangeEventTest.java | 27 |
2 files changed, 0 insertions, 67 deletions
diff --git a/uitest/src/com/vaadin/tests/components/textfield/TimerTriggeredTextChangeEvent.java b/uitest/src/com/vaadin/tests/components/textfield/TimerTriggeredTextChangeEvent.java deleted file mode 100644 index 89f8215547..0000000000 --- a/uitest/src/com/vaadin/tests/components/textfield/TimerTriggeredTextChangeEvent.java +++ /dev/null @@ -1,40 +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.AbstractTextField; -import com.vaadin.ui.Label; -import com.vaadin.ui.TextField; - -public class TimerTriggeredTextChangeEvent extends AbstractTestUI { - @Override - protected void setup(VaadinRequest request) { - final TextField textfield = new TextField(); - final Label serverValue = new Label(); - serverValue.setCaption("Server:"); - - textfield.addTextChangeListener(new FieldEvents.TextChangeListener() { - @Override - public void textChange(FieldEvents.TextChangeEvent event) { - serverValue.setValue(textfield.getValue()); - } - }); - - textfield.setTextChangeEventMode( - AbstractTextField.TextChangeEventMode.EAGER); - - addComponent(textfield); - addComponent(serverValue); - } - - @Override - protected Integer getTicketNumber() { - return 16270; - } - - @Override - protected String getTestDescription() { - return "Text value in server should always be updated."; - } -} diff --git a/uitest/src/com/vaadin/tests/components/textfield/TimerTriggeredTextChangeEventTest.java b/uitest/src/com/vaadin/tests/components/textfield/TimerTriggeredTextChangeEventTest.java deleted file mode 100644 index c0fed66851..0000000000 --- a/uitest/src/com/vaadin/tests/components/textfield/TimerTriggeredTextChangeEventTest.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.vaadin.tests.components.textfield; - -import com.vaadin.testbench.elements.LabelElement; -import com.vaadin.testbench.elements.TextFieldElement; -import com.vaadin.tests.tb3.MultiBrowserTest; -import org.junit.Test; - -import static org.hamcrest.CoreMatchers.is; -import static org.hamcrest.MatcherAssert.assertThat; - -public class TimerTriggeredTextChangeEventTest extends MultiBrowserTest { - - @Test - public void serverValueIsUpdated() { - openTestURL(); - - TextFieldElement textfield = $(TextFieldElement.class).first(); - LabelElement serverValue = $(LabelElement.class).caption("Server:") - .first(); - - textfield.sendKeys("f"); - - assertThat(textfield.getValue(), is("f")); - assertThat(serverValue.getText(), is("f")); - } - -}
\ No newline at end of file |