summaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/tests/layouts/OrderedLayoutCSSCompatibility.java
blob: 5c3790391091c417b3615d1aff000129ff662ed2 (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
package com.itmill.toolkit.tests.layouts;

import com.itmill.toolkit.tests.components.TestBase;
import com.itmill.toolkit.ui.OrderedLayout;
import com.itmill.toolkit.ui.TextField;

public class OrderedLayoutCSSCompatibility extends TestBase {

    @Override
    protected String getDescription() {
        return "This test is to make sure that spacing/margins in OrderedLayout is still backwards compatible";
    }

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

    @Override
    protected void setup() {
        OrderedLayout l = new OrderedLayout(
                OrderedLayout.ORIENTATION_HORIZONTAL);
        l.setMargin(true);
        l.setSpacing(true);
        l.addComponent(new TextField("abc"));
        l.addComponent(new TextField("def"));

        addComponent(l);

    }

}