" }",
" }",
"}");
frame.refresh();
//
GridPanelInfo grid = (GridPanelInfo) frame.getChildrenJava().get(0);
assertNoErrors(frame);
assertHierarchy( // filler
"{RootPanel.get()} {local-unique: rootPanel} {/RootPanel.get()/ /rootPanel.add(grid, 100, 100)/}\n"
+ " {new: com.gwtext.client.widgets.grid.GridPanel} {local-unique: grid} {/new GridPanel()/ /grid.setColumnModel(new ColumnModel(columns))/ /rootPanel.add(grid, 100, 100)/}\n"
+ " {new: com.gwtext.client.widgets.grid.ColumnConfig} {empty} {/new ColumnConfig(\"AAA\", \"f1\", 50)/}\n"
+ " {new: com.gwtext.client.widgets.grid.ColumnConfig} {empty} {/new ColumnConfig(\"BBB\", \"f3\")/}");
List<ColumnConfigInfo> columns = grid.getColumns();
assertThat(columns.size()).isEqualTo(2);
assertThat(columns.get(0).getBounds()).isEqualTo(new Rectangle(2, 2, 50, 23));
assertThat(columns.get(1).getBounds()).isEqualTo(new Rectangle(52, 2, 100, 23));
}