Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEric Williams2017-07-04 14:07:57 +0000
committerEric Williams2017-07-04 16:10:29 +0000
commita11c0c7796b373c0b90c36a2f484694075cc0994 (patch)
treec3ea17096735ea7a1e5c2c08c54d0f231a2c4b47 /tests
parent1a34eb77413b2fbc007bc59fabb14e23b8a08b61 (diff)
downloadeclipse.platform.swt-a11c0c7796b373c0b90c36a2f484694075cc0994.tar.gz
eclipse.platform.swt-a11c0c7796b373c0b90c36a2f484694075cc0994.tar.xz
eclipse.platform.swt-a11c0c7796b373c0b90c36a2f484694075cc0994.zip
Bug 477950 - [GTK3] Port SWT colors from using GdkColor to GdkRGBA so
alpha is not lost Revert setForeground tests with alpha on Win32 as Win32 does not support transparent foreground colors like Cocoa or GTK3 do. Change-Id: Iaba328a6ee12d0a52743a1bc9df6ff0c9b0b16ba Signed-off-by: Eric Williams <ericwill@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Control.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Control.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Control.java
index 0d0673cff0..a0da28e702 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Control.java
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Control.java
@@ -471,7 +471,7 @@ public void test_setBackgroundLorg_eclipse_swt_graphics_Color() {
color.dispose();
}
@Test
-public void test_setBackgroundWithAlphaLorg_eclipse_swt_graphics_Color() {
+public void test_setBackgroundAlphaLorg_eclipse_swt_graphics_Color() {
Color color = new Color (control.getDisplay(), 255, 0, 0, 0);
control.setBackground(color);
assertEquals(color, control.getBackground());
@@ -596,8 +596,8 @@ public void test_setForegroundLorg_eclipse_swt_graphics_Color() {
}
@Test
public void test_setForegroundAlphaLorg_eclipse_swt_graphics_Color() {
- assumeTrue("Alpha support for foreground colors does not exist on GTK2",
- !SwtTestUtil.isGTK || SwtTestUtil.isGTK3());
+ assumeTrue("Alpha support for foreground colors does not exist on GTK2 or Win32",
+ SwtTestUtil.isCocoa || SwtTestUtil.isGTK3());
Color color = new Color (control.getDisplay(), 255, 0, 0, 0);
control.setForeground(color);
assertEquals(color, control.getForeground());

Back to the top