Skip to main content
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCarolyn MacLeod2011-09-24 19:54:05 +0000
committerCarolyn MacLeod2011-09-24 19:56:39 +0000
commit8d66c54f1806e5f4886545c525b731676efd0ad4 (patch)
treec9950219609d611f38894e738b099ff99b950e93 /tests
parentb3289ecfc47e79e340ac862d8d53734bd3c6d2dd (diff)
downloadeclipse.platform.swt-8d66c54f1806e5f4886545c525b731676efd0ad4.tar.gz
eclipse.platform.swt-8d66c54f1806e5f4886545c525b731676efd0ad4.tar.xz
eclipse.platform.swt-8d66c54f1806e5f4886545c525b731676efd0ad4.zip
Bug 331948 - setBackground does not work in DateTime with SWT.CALENDAR
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.java4
1 files changed, 2 insertions, 2 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 23d1dc2cc5..cefc739790 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
@@ -426,9 +426,9 @@ public void test_removeTraverseListenerLorg_eclipse_swt_events_TraverseListener(
public void test_setBackgroundLorg_eclipse_swt_graphics_Color() {
Color color = new Color(control.getDisplay(), 255, 0, 0);
control.setBackground(color);
- assertEquals(color, control.getBackground());
+ assertEquals("getBackground not equal color after setBackground(color)", color, control.getBackground());
control.setBackground(null);
- assertTrue(!control.getBackground().equals(color));
+ assertTrue("getBackground unchanged after setBackground(null)", !control.getBackground().equals(color));
color.dispose();
}

Back to the top