use of com.google.gwt.user.client.ui.TabPanel in project gwt-test-utils by gwt-test-utils.
the class TabPanelTest method widgetIndex.
@Test
public void widgetIndex() {
// Given
TabPanel tp = new TabPanel();
Widget widget0 = new HTML("Foo");
tp.add(widget0, "foo");
Widget widget1 = new HTML("Bar");
tp.add(widget1, "bar");
// When & Then
assertThat(tp.getWidgetIndex(widget1)).isEqualTo(1);
}
use of com.google.gwt.user.client.ui.TabPanel in project gwt-test-utils by gwt-test-utils.
the class TabPanelTest method createTabPanel.
private TabPanel createTabPanel() {
TabPanel tp = new TabPanel();
tp.add(new HTML("Foo"), "foo");
tp.add(new HTML("Bar"), "bar");
tp.add(new HTML("Baz"), "baz");
return tp;
}