* Test for {@link TabLayoutPanelInfo#getWidgetHandles()}.
* <p>
* {@link WidgetHandle}'s should have some good bounds.
*/
public void test_WidgetHandle_getBounds() throws Exception {
TabLayoutPanelInfo panel =
parseJavaInfo(
"public class Test extends TabLayoutPanel {",
" public Test() {",
" super(1.5, Unit.EM);",
" {",
" Button button_1 = new Button();",
" add(button_1, 'ABC', false);",
" }",
" {",
" Button button_2 = new Button();",
" add(button_2, 'ABCABC', false);",
" }",
" }",
"}");
panel.refresh();
WidgetInfo button_1 = getJavaInfoByName("button_1");
WidgetInfo button_2 = getJavaInfoByName("button_2");
//
List<WidgetHandle> handles = panel.getWidgetHandles();
assertThat(handles).hasSize(2);
WidgetHandle handle_1 = handles.get(0);
WidgetHandle handle_2 = handles.get(1);
Rectangle bounds_1 = handle_1.getBounds();
Rectangle bounds_2 = handle_2.getBounds();