]> source.dussan.org Git - vaadin-framework.git/commitdiff
Test case for #3792 - SplitPanel resizing issue with RichTextArea
authorArtur Signell <artur.signell@itmill.com>
Fri, 15 Jan 2010 10:24:55 +0000 (10:24 +0000)
committerArtur Signell <artur.signell@itmill.com>
Fri, 15 Jan 2010 10:24:55 +0000 (10:24 +0000)
svn changeset:10732/svn branch:6.2

tests/src/com/vaadin/tests/components/splitpanel/SplitPanelWithRichTextArea.java [new file with mode: 0644]

diff --git a/tests/src/com/vaadin/tests/components/splitpanel/SplitPanelWithRichTextArea.java b/tests/src/com/vaadin/tests/components/splitpanel/SplitPanelWithRichTextArea.java
new file mode 100644 (file)
index 0000000..f5e5435
--- /dev/null
@@ -0,0 +1,37 @@
+package com.vaadin.tests.components.splitpanel;
+
+import com.vaadin.tests.components.TestBase;
+import com.vaadin.ui.Label;
+import com.vaadin.ui.RichTextArea;
+import com.vaadin.ui.SplitPanel;
+
+public class SplitPanelWithRichTextArea extends TestBase {
+
+    @Override
+    protected void setup() {
+        SplitPanel sp = new SplitPanel();
+        sp.setSizeFull();
+        RichTextArea rta = new RichTextArea();
+        rta.setSizeFull();
+        Label label = new Label("One side of the panel");
+
+        sp.setFirstComponent(label);
+        sp.setSecondComponent(rta);
+
+        addComponent(sp);
+        sp.setSizeFull();
+        getLayout().setSizeFull();
+
+    }
+
+    @Override
+    protected String getDescription() {
+        return "Dragging the splitter should work even if the cursor happens to move over the RichTextArea because of slow updates.";
+    }
+
+    @Override
+    protected Integer getTicketNumber() {
+        return 3792;
+    }
+
+}