aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/main/java/com/vaadin/tests/layoutmanager/LayoutDuringStateUpdate.java
blob: 6b114176a004d0c0728e82ca9d7d921112d2a607 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.vaadin.tests.layoutmanager;

import com.vaadin.annotations.Widgetset;
import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractReindeerTestUI;
import com.vaadin.tests.widgetset.TestingWidgetSet;
import com.vaadin.tests.widgetset.server.LayoutDuringStateUpdateComponent;
import com.vaadin.ui.Button;

@Widgetset(TestingWidgetSet.NAME)
public class LayoutDuringStateUpdate extends AbstractReindeerTestUI {

    @Override
    protected void setup(VaadinRequest request) {
        // delay adding of the component to ensure unrelated layouting calls
        // don't interfere with the test
        addComponent(new Button("Add component",
                e -> addComponent(new LayoutDuringStateUpdateComponent())));
    }
}