diff options
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/richtextarea/RichTextAreaEmptyString.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/richtextarea/RichTextAreaEmptyString.java b/uitest/src/com/vaadin/tests/components/richtextarea/RichTextAreaEmptyString.java new file mode 100644 index 0000000000..5eddf9dc6d --- /dev/null +++ b/uitest/src/com/vaadin/tests/components/richtextarea/RichTextAreaEmptyString.java @@ -0,0 +1,42 @@ +package com.vaadin.tests.components.richtextarea; + +import com.vaadin.shared.ui.label.ContentMode; +import com.vaadin.tests.components.TestBase; +import com.vaadin.ui.Button; +import com.vaadin.ui.Button.ClickEvent; +import com.vaadin.ui.Button.ClickListener; +import com.vaadin.ui.Label; +import com.vaadin.ui.RichTextArea; + +public class RichTextAreaEmptyString extends TestBase { + + @Override + protected String getDescription() { + return "Test the value of a rich text area. Visually empty area should return \"\""; + } + + @Override + protected Integer getTicketNumber() { + return 8004; + } + + @Override + protected void setup() { + final RichTextArea area = new RichTextArea(); + + final Label l = new Label(area.getValue(), ContentMode.PREFORMATTED); + l.setCaption("Value recieved from RichTextArea:"); + + final Button b = new Button("get area value", new ClickListener() { + + public void buttonClick(ClickEvent event) { + l.setValue(area.getValue()); + } + }); + + addComponent(area); + addComponent(b); + addComponent(l); + } + +} |