" }",
"}");
}
public void test_MOVE_header() throws Exception {
StackLayoutPanelInfo panel =
openJavaInfo(
"public class Test extends StackLayoutPanel {",
" public Test() {",
" super(Unit.EM);",
" {",
" Button button_1 = new Button();",
" add(button_1, new HTML('A'), 2.0);",
" }",
" {",
" Button button_2 = new Button();",
" add(button_2, new HTML('B'), 2.0);",
" }",
" }",
"}");
// drag header of "button_2"
{
Rectangle bounds = panel.getWidgetHandles().get(1).getBounds();
Point handleCenter = bounds.getCenter();
canvas.moveTo(panel, handleCenter.x, handleCenter.y);
canvas.beginDrag().dragTo(panel, 5, 0).endDrag();
}
assertEditor(