Preparing for internationalization as well as responding to the tighter

Eclipse 3.0 code checks. Added RLE and ICO test. The i18n may be
misplaced as this is test code...
This commit is contained in:
Robert Greene 2004-07-04 22:03:55 +00:00
parent 3eb7adc2a8
commit d0da779cbe

View File

@ -23,19 +23,27 @@ public class SwtImageTest extends TestCase {
}
public void testPNG() throws Exception {
performTest("PNG");
performTest("PNG"); //$NON-NLS-1$
}
public void testJPEG() throws Exception {
performTest("JPEG");
performTest("JPEG"); //$NON-NLS-1$
}
public void testBMP() throws Exception {
performTest("BMP");
performTest("BMP"); //$NON-NLS-1$
}
public void testBMP_RLE() throws Exception {
performTest("RLE"); //$NON-NLS-1$
}
public void testGIF() throws Exception {
performTest("GIF");
performTest("GIF"); //$NON-NLS-1$
}
public void testICO() throws Exception {
performTest("ICO"); //$NON-NLS-1$
}
protected void performTest(String imageType) throws Exception {
@ -59,6 +67,6 @@ public class SwtImageTest extends TestCase {
image.setPoint(x, y, color);
}
}
image.save(new FileOutputStream("C:/Temp/TestImage." + imageType));
image.save(new FileOutputStream("TestImage." + imageType)); //$NON-NLS-1$
}
}