/**
* We should remove enclosing "Cell" element if it has no attributes.
*/
public void test_propertyCell_removeElement() throws Exception {
XmlObjectInfo panel =
parse(
"// filler filler filler filler filler",
"<ui:UiBinder>",
" <g:HorizontalPanel>",
" <g:Cell width='100px'>",
" <g:Button/>",
" </g:Cell>",
" </g:HorizontalPanel>",
"</ui:UiBinder>");
refresh();
WidgetInfo button = (WidgetInfo) panel.getChildren().get(0);
// "width"
{
Property property = PropertyUtils.getByPath(button, "Cell/width");
// remove value
property.setValue(Property.UNKNOWN_VALUE);