Author: amarkhel
Date: 2008-06-03 09:29:45 -0400 (Tue, 03 Jun 2008)
New Revision: 8884
Modified:
trunk/ui/orderingList/src/test/java/org/richfaces/renderkit/OrderingListRenderingTest.java
Log:
Modified:
trunk/ui/orderingList/src/test/java/org/richfaces/renderkit/OrderingListRenderingTest.java
===================================================================
---
trunk/ui/orderingList/src/test/java/org/richfaces/renderkit/OrderingListRenderingTest.java 2008-06-03
12:44:32 UTC (rev 8883)
+++
trunk/ui/orderingList/src/test/java/org/richfaces/renderkit/OrderingListRenderingTest.java 2008-06-03
13:29:45 UTC (rev 8884)
@@ -54,6 +54,7 @@
public class OrderingListRenderingTest extends AbstractAjax4JsfTestCase {
private static Set<String> javaScripts = new HashSet<String>();
private static Set<String> imageClasses = new HashSet<String>();
+ private static Set<String> imagePNGClasses = new HashSet<String>();
static {
javaScripts.add("org.ajax4jsf.javascript.PrototypeScript");
@@ -65,7 +66,6 @@
javaScripts.add("scripts/ListBase.js");
imageClasses.add("org.richfaces.renderkit.html.images.TriangleIconUp");
- imageClasses.add("org.richfaces.renderkit.html.images.TriangleIconDown");
imageClasses.add("org.richfaces.renderkit.html.images.OrderingListIconTop");
imageClasses.add("org.richfaces.renderkit.html.images.OrderingListIconBottom");
imageClasses.add("org.richfaces.renderkit.html.images.OrderingListIconUpDisabled");
@@ -73,8 +73,10 @@
imageClasses.add("org.richfaces.renderkit.html.images.OrderingListIconTopDisabled");
imageClasses.add("org.richfaces.renderkit.html.images.OrderingListIconBottomDisabled");
imageClasses.add("org.richfaces.renderkit.html.gradientimages.OrderingListClickedGradient");
- imageClasses.add("org.richfaces.renderkit.html.gradientimages.OrderingListHeaderGradient");
imageClasses.add("org.richfaces.renderkit.html.gradientimages.OrderingListButtonGradient");
+
+ imagePNGClasses.add("org.richfaces.renderkit.html.images.TriangleIconDown");
+ imagePNGClasses.add("org.richfaces.renderkit.html.gradientimages.OrderingListHeaderGradient");
}
/**
@@ -199,6 +201,15 @@
assertTrue(info.getHeight() > 0);
assertTrue(info.getWidth() > 0);
}
+
+ for (Iterator<String> it = imagePNGClasses.iterator(); it.hasNext(); ) {
+ String clazz = it.next();
+ ImageInfo info = getImageResource(clazz);
+ assertNotNull(info);
+ assertEquals(ImageInfo.FORMAT_GIF, info.getFormat());
+ assertTrue(info.getHeight() > 0);
+ assertTrue(info.getWidth() > 0);
+ }
}
/**
Show replies by date