//
// Tests
//
////////////////////////////////////////////////////////////////////////////
public void test_parse() throws Exception {
LayoutContainerInfo container =
parseJavaInfo(
"public class Test extends LayoutContainer {",
" public Test() {",
" setLayout(new FormLayout());",
" {",
" Slider slider = new Slider();",
" SliderField sliderField = new SliderField(slider);",
" add(sliderField);",
" }",
" }",
"}");
assertHierarchy(
"{this: com.extjs.gxt.ui.client.widget.LayoutContainer} {this} {/setLayout(new FormLayout())/ /add(sliderField)/}",
" {new: com.extjs.gxt.ui.client.widget.layout.FormLayout} {empty} {/setLayout(new FormLayout())/}",
" {new: com.extjs.gxt.ui.client.widget.form.SliderField} {local-unique: sliderField} {/new SliderField(slider)/ /add(sliderField)/}",
" {new: com.extjs.gxt.ui.client.widget.Slider} {local-unique: slider} {/new Slider()/ /new SliderField(slider)/}",
" {virtual-layout_data: com.extjs.gxt.ui.client.widget.layout.FormData} {virtual-layout-data} {}");
//
container.refresh();
assertNoErrors(container);
// SliderField has only one constructor
{
SliderFieldInfo sliderField = getJavaInfoByName("sliderField");
List<ConstructorDescription> constructors = sliderField.getDescription().getConstructors();