assertEquals(new Rectangle(0, 0, 450, 300), frame.getBounds());
assertEquals(new Rectangle(0, 0, 450, 300), frame.getModelBounds());
}
// check GWT_TopBoundsSupport, set new size
{
TopBoundsSupport topBoundsSupport = frame.getTopBoundsSupport();
topBoundsSupport.setSize(500, 400);
frame.refresh();
assertEquals(new Rectangle(0, 0, 500, 400), frame.getBounds());
assertEquals(new Rectangle(0, 0, 500, 400), frame.getModelBounds());
}
}