aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/test/java/com/vaadin/tests/components/upload/UploadImmediateButtonWidthChameleonTest.java
blob: 17223fc67000327d5f3cf7f9c1e22c4011ce83ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.vaadin.tests.components.upload;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.closeTo;

import org.junit.Test;

import com.vaadin.v7.ui.themes.ChameleonTheme;

public class UploadImmediateButtonWidthChameleonTest
        extends UploadImmediateButtonWidthTest {

    @Override
    protected String getTheme() {
        return ChameleonTheme.THEME_NAME;
    }

    @Test
    public void immediateButtonWithUndefinedWidth() {
        assertThat(getButtonWidth("upload3"), closeTo(69, 5));
    }
}