" add(button);",
" }",
" }",
"}");
refresh();
HorizontalSplitPanelInfo panel = getJavaInfoByName("panel");
// initial state
WidgetInfo button = frame.getChildrenWidgets().get(1);
assertNull(panel.getLeftWidget());
assertNull(panel.getRightWidget());
// do move
panel.command_MOVE(button, "right");
assertEditor(
"public class Test extends FlowPanel {",
" public Test() {",
" HorizontalSplitPanel panel = new HorizontalSplitPanel();",
" add(panel);",
" {",
" Button button = new Button();",
" panel.setRightWidget(button);",
" button.setSize('100%', '100%');",
" }",
" }",
"}");
assertNull(panel.getLeftWidget());
assertSame(button, panel.getRightWidget());
}