summaryrefslogtreecommitdiffstats
path: root/src/com/itmill
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2009-02-20 06:30:12 +0000
committerArtur Signell <artur.signell@itmill.com>2009-02-20 06:30:12 +0000
commitf46e60002558a62bc95cf3e8b39970c6ade2b9cc (patch)
tree8987a880185dd937c851def43984ab74cf418b12 /src/com/itmill
parent9bdb74ef040673029a8c840474a03cc4b975c375 (diff)
downloadvaadin-framework-f46e60002558a62bc95cf3e8b39970c6ade2b9cc.tar.gz
vaadin-framework-f46e60002558a62bc95cf3e8b39970c6ade2b9cc.zip
Test case for #2573
svn changeset:6914/svn branch:trunk
Diffstat (limited to 'src/com/itmill')
-rw-r--r--src/com/itmill/toolkit/tests/components/richtextarea/RichTextAreaSize.java42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/com/itmill/toolkit/tests/components/richtextarea/RichTextAreaSize.java b/src/com/itmill/toolkit/tests/components/richtextarea/RichTextAreaSize.java
new file mode 100644
index 0000000000..b9bdfc5107
--- /dev/null
+++ b/src/com/itmill/toolkit/tests/components/richtextarea/RichTextAreaSize.java
@@ -0,0 +1,42 @@
+package com.itmill.toolkit.tests.components.richtextarea;
+
+import com.itmill.toolkit.tests.components.TestBase;
+import com.itmill.toolkit.ui.RichTextArea;
+import com.itmill.toolkit.ui.VerticalLayout;
+
+public class RichTextAreaSize extends TestBase {
+
+ @Override
+ protected String getDescription() {
+ return "Test the size of a rich text area. The first area is 100px*100px wide, the second 100%*100% (of 500x500px), the third one has undefined width and height.";
+ }
+
+ @Override
+ protected Integer getTicketNumber() {
+ return 2573;
+ }
+
+ @Override
+ protected void setup() {
+ getMainWindow().getLayout().setHeight(null);
+
+ RichTextArea first = new RichTextArea();
+ RichTextArea second = new RichTextArea();
+ RichTextArea third = new RichTextArea();
+
+ first.setWidth("100px");
+ first.setHeight("100px");
+ second.setSizeFull();
+ third.setSizeUndefined();
+
+ VerticalLayout secondLayout = new VerticalLayout();
+ secondLayout.setWidth("500px");
+ secondLayout.setHeight("500px");
+ secondLayout.addComponent(second);
+
+ addComponent(first);
+ addComponent(secondLayout);
+ addComponent(third);
+ }
+
+}