" }",
"}");
}
public void test_setRowSpan() throws Exception {
RootPanelInfo frame =
parseJavaInfo(
"public class Test implements EntryPoint {",
" public void onModuleLoad() {",
" RootPanel rootPanel = RootPanel.get();",
" FlexTable panel = new FlexTable();",
" rootPanel.add(panel);",
" panel.setWidget(0, 0, new Button());",
" panel.setWidget(1, 0, new Button());",
" panel.setWidget(2, 0, new Button());",
" panel.setWidget(0, 1, new Button());",
" panel.getFlexCellFormatter().setRowSpan(0, 1, 2);",
" }",
"}");
frame.refresh();
HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
WidgetInfo button = panel.getChildrenWidgets().get(3);
Property property = PropertyUtils.getByPath(button, "Cell/rowSpan");
// initial value
assertTrue(property.isModified());
assertEquals(2, property.getValue());