--- /dev/null
+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