assertEquals(":a:", new RGB(255, 0, 0), gcImageData.palette.getRGB(redPixel));
assertEquals(":a:", getRealRGB(display.getSystemColor(SWT.COLOR_RED)), gcImageData.palette.getRGB(redPixel));
public void test_ConstructorLorg_eclipse_swt_graphics_DeviceLorg_eclipse_swt_graphics_ImageData() {	ImageData data = null;	Image image = null;		try {		image = new Image(display, data);		image.dispose();		fail("No exception thrown for ImageData == null");	} catch (IllegalArgumentException e) {		assertEquals("Incorrect exception thrown for ImageData == null", SWT.ERROR_NULL_ARGUMENT, e);	}//	Platform-specific test.  //	data = new ImageData(10, 10, 1, new PaletteData(0xff0000, 0x00ff00, 0x0000ff));//	try {//		image = new Image(display, data);//		image.dispose();//		fail("Unsupported color depth");//	} catch (SWTException e) {//	}	data = new ImageData(10, 10, 1, new PaletteData(new RGB[] {new RGB(0, 0, 0)}));	image = new Image(null, data);	image.dispose();	data = new ImageData(10, 10, 1, new PaletteData(new RGB[] {new RGB(0, 0, 0)}));	image = new Image(display, data);	image.dispose();		data = new ImageData(10, 10, 8, new PaletteData(0x30, 0x0C, 0x03));	// set red pixel at x=9, y=9	data.setPixel(9, 9, 0x30);	image = new Image(display, data);	Image gcImage = new Image(display, 10, 10);	GC gc = new GC(gcImage);	gc.drawImage(image, 0, 0);	ImageData gcImageData = gcImage.getImageData();	int redPixel = gcImageData.getPixel(9, 9);	assertEquals(":a:", new RGB(255, 0, 0), gcImageData.palette.getRGB(redPixel));	gc.dispose();	gcImage.dispose();	image.dispose();}