diff options
author | Grant Gayed <ggayed> | 2002-05-30 20:36:11 +0000 |
---|---|---|
committer | Grant Gayed <ggayed> | 2002-05-30 20:36:11 +0000 |
commit | 7385d958f220b095b02b4aa5962545e2f0470852 (patch) | |
tree | 23af85f5102489f6123b0a6d88ba99ccfab9d640 /tests | |
parent | 139d8d2a782cab802c9b273b44628b607bc321bd (diff) | |
download | eclipse.platform.swt-7385d958f220b095b02b4aa5962545e2f0470852.tar.gz eclipse.platform.swt-7385d958f220b095b02b4aa5962545e2f0470852.tar.xz eclipse.platform.swt-7385d958f220b095b02b4aa5962545e2f0470852.zip |
*** empty log message ***
Diffstat (limited to 'tests')
-rw-r--r-- | tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_FontData.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_FontData.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_FontData.java index a993547564..fce7b33c6e 100644 --- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_FontData.java +++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_FontData.java @@ -150,20 +150,24 @@ public void test_setNameLjava_lang_String() { fontData.setName("bad-font");
assertEquals("Wrong name", fontData.getName(), "bad-font");
- // valid name (empty string, but valid)
- fontData.setName("");
- assertEquals("Wrong name", fontData.getName(), "");
+ // valid name (empty string, but valid) + // only on windows since motif supports separate font foundries + if (SwtJunit.isWindows) {
+ fontData.setName(""); + assertEquals("Wrong name", fontData.getName(), ""); + } // valid name
fontData.setName(SwtJunit.testFontName);
assertEquals("Wrong name", fontData.getName(), SwtJunit.testFontName);
-
+System.out.println(4);
// illegal argument, name == null
try {
fontData.setName(null);
fail("No exception thrown for name == null");
} catch (IllegalArgumentException e) {
- }
+ } +System.out.println(5);
} public void test_setStyleI() {
|