diff options
author | Carolyn MacLeod | 2004-08-17 14:29:30 +0000 |
---|---|---|
committer | Carolyn MacLeod | 2004-08-17 14:29:30 +0000 |
commit | ec5dfe073798f5de0288c00eaa3e1dd5609b26d3 (patch) | |
tree | be5a6890842e811828a2719d8fb440f850f3bf81 /tests | |
parent | b281e7f80b3b349f5ee037812ddb9ba305b1c571 (diff) | |
download | eclipse.platform.swt-ec5dfe073798f5de0288c00eaa3e1dd5609b26d3.tar.gz eclipse.platform.swt-ec5dfe073798f5de0288c00eaa3e1dd5609b26d3.tar.xz eclipse.platform.swt-ec5dfe073798f5de0288c00eaa3e1dd5609b26d3.zip |
Fixed Image constructor test to comply with bug 64266
Diffstat (limited to 'tests')
-rw-r--r-- | tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Image.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Image.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Image.java index d7b0797bc2..a0bf868140 100644 --- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Image.java +++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Image.java @@ -239,13 +239,8 @@ public void test_ConstructorLorg_eclipse_swt_graphics_DeviceLorg_eclipse_swt_gra data = new ImageData(10, 10, 8, new PaletteData(new RGB[] {new RGB(0, 0, 0)})); data1 = new ImageData(10, 10, 8, new PaletteData(new RGB[] {new RGB(0, 0, 0)})); - try { - image = new Image(display, data, data1); - image.dispose(); - fail("No exception thrown for ImageData mask color depth != 1"); - } catch (IllegalArgumentException e) { - assertEquals("Incorrect exception thrown for ImageData mask color depth != 1", SWT.ERROR_INVALID_ARGUMENT, e); - } + image = new Image(display, data, data1); // Image now accepts masks where depth != 1 + image.dispose(); data = new ImageData(10, 10, 8, new PaletteData(0x30, 0x0C, 0x03)); // set opaque red pixel at x=9, y=9 |