//
// Tests
//
////////////////////////////////////////////////////////////////////////////
public void test_parse() throws Exception {
MultiFieldPanelInfo panel =
parseJavaInfo(
"public class Test extends MultiFieldPanel {",
" public Test() {",
" {",
" TextField textField_1 = new TextField();",
" addToRow(textField_1, 100);",
" }",
" {",
" TextField textField_2 = new TextField();",
" addToRow(textField_2, new ColumnLayoutData(0.5));",
" }",
" }",
"}");
panel.refresh();
//
assertHierarchy(
"{this: com.gwtext.client.widgets.form.MultiFieldPanel} {this} {/addToRow(textField_1, 100)/ /addToRow(textField_2, new ColumnLayoutData(0.5))/}",
" {new: com.gwtext.client.widgets.form.TextField} {local-unique: textField_1} {/new TextField()/ /addToRow(textField_1, 100)/}",
" {new: com.gwtext.client.widgets.form.TextField} {local-unique: textField_2} {/new TextField()/ /addToRow(textField_2, new ColumnLayoutData(0.5))/}",