use of com.google.gwt.user.client.ui.Image in project gwt-test-utils by gwt-test-utils.
the class ImageTest method visible.
@Test
public void visible() {
// Given
Image i = new Image();
// Preconditions
assertThat(i.isVisible()).isEqualTo(true);
// When
i.setVisible(false);
// Then
assertThat(i.isVisible()).isEqualTo(false);
}
use of com.google.gwt.user.client.ui.Image in project gwt-test-utils by gwt-test-utils.
the class ImageTest method title.
@Test
public void title() {
// Given
Image i = new Image();
// When
i.setTitle("title");
// Then
assertThat(i.getTitle()).isEqualTo("title");
}
use of com.google.gwt.user.client.ui.Image in project gwt-test-utils by gwt-test-utils.
the class ImageTest method url.
@Test
public void url() {
// Given
Image i = new Image("http://my-url");
// Preconditions
assertThat(i.getUrl()).isEqualTo("http://my-url");
// When
i.setUrl("newURL");
// Then
assertThat(i.getUrl()).isEqualTo("newURL");
}
use of com.google.gwt.user.client.ui.Image in project gwt-test-utils by gwt-test-utils.
the class ImageTest method width_Em.
@Test
public void width_Em() {
Image i = new Image();
// Preconditions
assertThat(i.getWidth()).isEqualTo(0);
// When
i.setWidth("20em");
// Then
assertThat(i.getWidth()).isEqualTo(20);
}
use of com.google.gwt.user.client.ui.Image in project gwt-test-utils by gwt-test-utils.
the class ImageTest method width.
@Test
public void width() {
// Given
Image i = new Image();
// Preconditions
assertThat(i.getWidth()).isEqualTo(0);
// When
i.setWidth("20");
// Then
assertThat(i.getWidth()).isEqualTo(20);
}
Aggregations