use of com.google.gwt.dom.client.ButtonElement in project gwt-test-utils by gwt-test-utils.
the class ButtonTest method wrap.
@Test
public void wrap() {
// Given
ButtonElement element = Document.get().createPushButtonElement();
element.setTabIndex(3);
Document.get().getBody().appendChild(element);
// When
Button b = Button.wrap(element);
// Then 1
assertThat(b.getTabIndex()).isEqualTo(3);
// When 2
b.setTabIndex(1);
// Then 2
assertThat(element.getTabIndex()).isEqualTo(1);
}
Aggregations