//
// Tests
//
////////////////////////////////////////////////////////////////////////////
public void test_parse() throws Exception {
ContainerInfo panel =
parseJavaInfo(
"public class Test extends Portal {",
" public Test() {",
" PortalColumn firstCol = new PortalColumn();",
" firstCol.setPaddings(10, 10, 0, 10);",
" {",
" Portlet portlet = new Portlet('My portlet', 'Some html');",
" firstCol.add(portlet);;",
" }",
" add(firstCol, new ColumnLayoutData(.33));",
" }",
"}");
panel.refresh();
//
assertHierarchy(
"{this: com.gwtext.client.widgets.portal.Portal} {this} {/add(firstCol, new ColumnLayoutData(.33))/}",
" {implicit-layout: com.gwtext.client.widgets.layout.ColumnLayout} {implicit-layout} {}",
" {new: com.gwtext.client.widgets.portal.PortalColumn} {local-unique: firstCol} {/new PortalColumn()/ /firstCol.setPaddings(10, 10, 0, 10)/ /firstCol.add(portlet)/ /add(firstCol, new ColumnLayoutData(.33))/}",