"}");
frame.refresh();
assertNoErrors(frame);
FlexTableInfo panel = (FlexTableInfo) frame.getChildrenWidgets().get(0);
// check IGridInfo
IGridInfo gridInfo = panel.getGridInfo();
assertEquals(3, gridInfo.getRowCount());
assertEquals(3, gridInfo.getColumnCount());
{
Interval[] intervals = gridInfo.getRowIntervals();
assertEquals(3, intervals.length);
assertEquals(new Interval(RS, RA), intervals[0]);
assertEquals(new Interval(RS + RA + RS, RA), intervals[1]);
assertEquals(new Interval(RS + RA + RS + RA + RS, RA), intervals[2]);
}
{
Interval[] intervals = gridInfo.getColumnIntervals();
assertEquals(3, intervals.length);
assertEquals(new Interval(CS, CA), intervals[0]);
assertEquals(new Interval(CS + CA + CS, CA), intervals[1]);
assertEquals(new Interval(CS + CA + CS + CA + CS, CA), intervals[2]);
}
// cells
{
List<WidgetInfo> widgets = panel.getChildrenWidgets();
assertEquals(new Rectangle(0, 0, 1, 1), gridInfo.getComponentCells(widgets.get(0)));
assertEquals(new Rectangle(1, 1, 1, 1), gridInfo.getComponentCells(widgets.get(1)));
assertEquals(new Rectangle(2, 2, 1, 1), gridInfo.getComponentCells(widgets.get(2)));
}
}