assertEquals(450, bounds.width);
assertEquals(300, bounds.height);
}
public void test_parseNew() throws Exception {
CaptionPanelInfo panel =
parseJavaInfo(
"public class Test {",
" /**",
" * @wbp.parser.entryPoint",
" */",
" public void init() {",
" CaptionPanel captionPanel = new CaptionPanel();",
" }",
"}");
assertHierarchy("{new: com.google.gwt.user.client.ui.CaptionPanel} {local-unique: captionPanel} {/new CaptionPanel()/}");
panel.refresh();
//
Rectangle bounds = panel.getBounds();
assertEquals(450, bounds.width);
assertEquals(300, bounds.height);
}