assertHierarchy(
"{this: com.google.gwt.user.client.ui.DialogBox} {this} {/setText('DialogBox')/ /setWidget(button)/}",
" {new: com.google.gwt.user.client.ui.Button} {local-unique: button} {/new Button()/ /setWidget(button)/ /button.setPixelSize(300, 200)/}");
WidgetInfo button = panel.getWidget();
// do refresh()
panel.refresh();
assertFalse(panel.isEmpty());
// check DialogBox bounds
{
Rectangle bounds = panel.getBounds();
assertThat(bounds.x).isEqualTo(0);