]> source.dussan.org Git - vaadin-framework.git/commitdiff
Test case for #2573
authorArtur Signell <artur.signell@itmill.com>
Fri, 20 Feb 2009 06:30:12 +0000 (06:30 +0000)
committerArtur Signell <artur.signell@itmill.com>
Fri, 20 Feb 2009 06:30:12 +0000 (06:30 +0000)
svn changeset:6914/svn branch:trunk

src/com/itmill/toolkit/tests/components/richtextarea/RichTextAreaSize.java [new file with mode: 0644]

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 (file)
index 0000000..b9bdfc5
--- /dev/null
@@ -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);
+    }
+
+}