use of com.google.gwt.user.client.ui.PopupPanel in project gwt-test-utils by gwt-test-utils.
the class PopupPanelTest method center.
@Test
public void center() {
// Given
PopupPanel popup = new PopupPanel();
popup.setAnimationEnabled(true);
// When
popup.center();
// Then
assertThat(popup.getOffsetHeight()).isEqualTo(0);
assertThat(popup.getOffsetWidth()).isEqualTo(0);
}
use of com.google.gwt.user.client.ui.PopupPanel in project gwt-test-utils by gwt-test-utils.
the class PopupPanelTest method showGlass.
@Test
public void showGlass() {
// Given
PopupPanel popup = new PopupPanel();
popup.setGlassEnabled(true);
// Preconditions
assertThat(popup.isShowing()).isFalse();
// When
popup.show();
// Then
assertThat(popup.isShowing()).isTrue();
}
use of com.google.gwt.user.client.ui.PopupPanel in project gwt-test-utils by gwt-test-utils.
the class PopupPanelTest method visible.
@Test
public void visible() {
// Given
PopupPanel popup = new PopupPanel();
// Preconditions
assertThat(popup.isVisible()).isTrue();
// When
popup.setVisible(false);
// Then
assertThat(popup.isVisible()).isFalse();
assertThat(popup.getElement().getStyle().getProperty("visibility")).isEqualTo("hidden");
}
Aggregations