summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/components/checkbox/CheckboxCaptionWrapping.java
blob: 463d53a4a815c19cc0942cc8cae01806c0a0f14e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.vaadin.tests.components.checkbox;

import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.Label;
import com.vaadin.ui.VerticalLayout;

public class CheckboxCaptionWrapping extends TestBase {

    @Override
    protected String getDescription() {
        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.";
    }

    @Override
    protected Integer getTicketNumber() {
        return 3263;
    }

    @Override
    protected void setup() {
        setTheme("tests-tickets");
        VerticalLayout mainLayout = new VerticalLayout();
        CheckBox cb = new CheckBox(
                "Checkbox with some Incididunt ut labore et dolore magna aliqua.");
        cb.setStyleName("wrap");
        cb.setWidth("100%");
        mainLayout.setStyleName("borders");
        mainLayout.setWidth("300px");
        mainLayout.addComponent(cb);
        mainLayout.addComponent(new Label(
                "Lorem ipsum dolor sit amet, consectetur adipisicing"
                        + " elit, sed do eiusmod tempor."));

        addComponent(mainLayout);

    }

}