" PushButton button = new PushButton('My text');",
" rootPanel.add(button);",
" }",
"}");
frame.refresh();
CustomButtonInfo button = (CustomButtonInfo) frame.getChildrenWidgets().get(0);
// check for properties for faces
hasFace(button, "UpFace");
hasFace(button, "UpDisabledFace");
hasFace(button, "UpHoveringFace");
hasFace(button, "DownFace");
hasFace(button, "DownDisabledFace");
hasFace(button, "DownHoveringFace");
// faces should not be visible as children
assertThat(button.getPresentation().getChildrenTree()).isEmpty();
assertThat(button.getPresentation().getChildrenGraphical()).isEmpty();
}