" {new: com.gwtext.client.widgets.Panel} {local-unique: container} {/new Panel()/ /rootPanel.add(container)/}",
" {implicit-layout: default} {implicit-layout} {}");
ContainerInfo container = (ContainerInfo) frame.getChildrenWidgets().get(0);
assertTrue(container.hasLayout());
//
LayoutInfo layout = container.getLayout();
assertInstanceOf(DefaultLayoutInfo.class, layout);
// layouts are not displayed in tree
{
IObjectPresentation presentation = layout.getPresentation();
assertFalse(presentation.isVisible());
}
// "default" layout has no LayoutData
try {
ReflectionUtils.invokeMethod(
layout,
"getDefaultVirtualDataObject(com.google.gdt.eclipse.designer.model.widgets.WidgetInfo)",
(WidgetInfo) null);
fail();
} catch (NotImplementedException e) {
}
// layout has GWTState same as RootPanel
assertThat(layout.getState()).isSameAs(frame.getState());
}