* I don't know why users try to set "0" as size, but they do. :-)
* <p>
* http://fogbugz.instantiations.com/fogbugz/default.php?41768
*/
public void test_badSize() throws Exception {
CompositeInfo composite =
parseJavaInfo(
"public class Test extends Composite {",
" public Test() {",
" {",
" AbsolutePanel absolutePanel = new AbsolutePanel();",
" initWidget(absolutePanel);",
" absolutePanel.setSize('450px', '300px');",
" {",
" Label label = new Label('New label');",
" absolutePanel.add(label, 10, 10);",
" }",
" }",
" setSize('400px', '0px');",
" }",
"}");
composite.refresh();
assertNoErrors(composite);
// check Composite bounds
Rectangle bounds = composite.getBounds();
assertEquals(new Rectangle(0, 0, 400, 0), bounds);
}