" panel.add(button_2, 'B');",
" }",
" }",
"}");
refresh();
TabPanelInfo panel = getJavaInfoByName("panel");
WidgetInfo button_1 = getJavaInfoByName("button_1");
WidgetInfo button_2 = getJavaInfoByName("button_2");
// by default "button_1" is displayed
assertTrue(isVisible(button_1));
assertFalse(isVisible(button_2));
// show "button_2" (no source should be changed)
{
String expectedSource = m_lastEditor.getSource();
panel.showWidget(button_2);
assertEditor(expectedSource, m_lastEditor);
}
assertFalse(isVisible(button_1));
assertTrue(isVisible(button_2));
}