//
// Tests
//
////////////////////////////////////////////////////////////////////////////
public void test_CREATE() throws Exception {
ComplexPanelInfo panel =
parseJavaInfo(
"public class Test extends com.google.gwt.user.client.ui.HorizontalPanel {",
" public Test() {",
" }",
"}");
panel.refresh();
// prepare new Grid
WidgetInfo newGrid = createJavaInfo("com.extjs.gxt.ui.client.widget.treegrid.EditorTreeGrid");
// check "live image"
{
Image liveImage = newGrid.getImage();
assertEquals(302, liveImage.getBounds().width);
assertEquals(202, liveImage.getBounds().height);
}
// do create
panel.command_CREATE2(newGrid, null);
assertEditor(
"import com.extjs.gxt.ui.client.widget.treegrid.EditorTreeGrid;",
"import com.extjs.gxt.ui.client.store.TreeStore;",
"import com.extjs.gxt.ui.client.widget.grid.ColumnModel;",
"import java.util.ArrayList;",