//
// CREATE
//
////////////////////////////////////////////////////////////////////////////
public void test_CREATE_inEmptyCell() throws Exception {
PanelInfo panel =
parseJavaInfo(
"import com.google.gwt.user.client.ui.Button;",
"public class Test extends Panel {",
" public Test() {",
" setLayout(new TableLayout(2));",
" {",
" Button button = new Button('0');",
" add(button);",
" }",
" add(new Label());",
" add(new Label());",
" {",
" Button button = new Button('1');",
" add(button);",
" }",
" }",
"}");
panel.refresh();
TableLayoutInfo layout = (TableLayoutInfo) panel.getLayout();
//
WidgetInfo newButton = createButton();
layout.command_CREATE(newButton, 1, false, 0, false);
assertEditor(
"import com.google.gwt.user.client.ui.Button;",