//
// BOUNDS
//
////////////////////////////////////////////////////////////////////////////
public void test_BOUNDS_setLocationSize_removeExistingInvocations() throws Exception {
CanvasInfo canvas =
parseJavaInfo(
"public class Test extends Canvas {",
" public Test() {",
" {",
" Button button = new Button('My Button');",
" addChild(button);",
" button.setRect(1, 2, 3, 4);",
" button.moveTo(1, 2);",
" button.setLeft(1);",
" button.setLeft('1px');",
" button.setTop(2);",
" button.setTop('2px');",
" button.resizeTo(3, 4);",
" button.setSize('3px', '4px');",
" button.setWidth(3);",
" button.setHeight(4);",
" button.setWidth('3px');",
" button.setHeight('4px');",
" }",
" }",
"}");
canvas.refresh();
CanvasInfo button = getJavaInfoByName("button");
//
canvas.command_BOUNDS(button, new Point(10, 20), new Dimension(50, 25));
assertEditor(
"public class Test extends Canvas {",
" public Test() {",