//
// Tests
//
////////////////////////////////////////////////////////////////////////////
public void test_parse() throws Exception {
LayoutContainerInfo container =
parseJavaInfo(
"public class Test extends LayoutContainer {",
" public Test() {",
" setLayout(new FormLayout());",
" {",
" MultiField multiField = new MultiField();",
" {",
" LabelField labelField = new LabelField();",
" multiField.add(labelField);",
" }",
" add(multiField);",
" }",
" }",
"}");
assertHierarchy(
"{this: com.extjs.gxt.ui.client.widget.LayoutContainer} {this} {/setLayout(new FormLayout())/ /add(multiField)/}",
" {new: com.extjs.gxt.ui.client.widget.layout.FormLayout} {empty} {/setLayout(new FormLayout())/}",
" {new: com.extjs.gxt.ui.client.widget.form.MultiField} {local-unique: multiField} {/new MultiField()/ /multiField.add(labelField)/ /add(multiField)/}",
" {new: com.extjs.gxt.ui.client.widget.form.LabelField} {local-unique: labelField} {/new LabelField()/ /multiField.add(labelField)/}",
" {virtual-layout_data: com.extjs.gxt.ui.client.widget.layout.FormData} {virtual-layout-data} {}");
//
container.refresh();
assertNoErrors(container);
}