]> source.dussan.org Git - vaadin-framework.git/commitdiff
Test case for #3263
authorArtur Signell <artur.signell@itmill.com>
Thu, 3 Sep 2009 06:02:33 +0000 (06:02 +0000)
committerArtur Signell <artur.signell@itmill.com>
Thu, 3 Sep 2009 06:02:33 +0000 (06:02 +0000)
svn changeset:8643/svn branch:6.1

WebContent/VAADIN/themes/tests-tickets/styles.css
src/com/vaadin/tests/components/checkbox/CheckboxCaptionWrapping.java [new file with mode: 0644]

index d918c3178f3f7fd047219e56f08f38af067b838a..0640b90f04d21e945f7fae4e605e690b9de633ee 100644 (file)
@@ -1288,4 +1288,8 @@ padding:2px;
 .green {
        background:green;       
 }
-   
\ No newline at end of file
+
+.v-checkbox-wrap label {
+       white-space: normal;
+}
+
diff --git a/src/com/vaadin/tests/components/checkbox/CheckboxCaptionWrapping.java b/src/com/vaadin/tests/components/checkbox/CheckboxCaptionWrapping.java
new file mode 100644 (file)
index 0000000..e083e31
--- /dev/null
@@ -0,0 +1,37 @@
+package com.vaadin.tests.components.checkbox;\r
+import com.vaadin.tests.components.TestBase;\r
+import com.vaadin.ui.CheckBox;\r
+import com.vaadin.ui.Label;\r
+import com.vaadin.ui.VerticalLayout;\r
+\r
+public class CheckboxCaptionWrapping extends TestBase {\r
+\r
+    @Override\r
+    protected String getDescription() {\r
+        return "The checkbox caption consists of 10 words which should all be shown. There should be no extra white space between the checkbox caption and the label below it.";\r
+    }\r
+\r
+    @Override\r
+    protected Integer getTicketNumber() {\r
+        return 3263;\r
+    }\r
+\r
+    @Override\r
+    protected void setup() {\r
+        setTheme("tests-tickets");\r
+        VerticalLayout mainLayout = new VerticalLayout();\r
+        CheckBox cb = new CheckBox(\r
+                "Checkbox with some Incididunt ut labore et dolore magna aliqua.");\r
+        cb.setStyleName("wrap");\r
+        mainLayout.setStyleName("borders");\r
+        mainLayout.setWidth("300px");\r
+        mainLayout.addComponent(cb);\r
+        mainLayout.addComponent(new Label(\r
+                "Lorem ipsum dolor sit amet, consectetur adipisicing"\r
+                        + " elit, sed do eiusmod tempor."));\r
+\r
+        addComponent(mainLayout);\r
+\r
+    }\r
+\r
+}\r