assertEquals(new Extent(20), icon.getWidth());
assertEquals(new Extent(30), icon.getHeight());
}
public void testResourceImageReferenceContentTypeHalfDimensioned() {
Style deltaStyle = styleSheet.getStyle(Button.class, "delta");
assertTrue(deltaStyle.getProperty(Button.PROPERTY_ICON) instanceof ResourceImageReference);
ResourceImageReference icon = (ResourceImageReference) deltaStyle.getProperty(Button.PROPERTY_ICON);
assertEquals("nextapp.echo2/test/componentxml/Delta.whoknows", icon.getResource());
assertEquals("image/gif", icon.getContentType());
assertEquals(new Extent(30), icon.getWidth());
assertNull(icon.getHeight());
}