aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2006-06-16 15:21:30 +0000
committerNick Burch <nick@apache.org>2006-06-16 15:21:30 +0000
commit866a84452af4609ecd3557bbc9a716e9f421ca11 (patch)
treef02672ca4e67df916d7b24d61039171f6dd3dbcf /src/testcases
parent51e12de65d96cb1568767769916d5d2b29fcf5ac (diff)
downloadpoi-866a84452af4609ecd3557bbc9a716e9f421ca11.tar.gz
poi-866a84452af4609ecd3557bbc9a716e9f421ca11.zip
On some JVMs, the problem family dialog has a capital D - change the skips to also skip on Dialog (should hopefully fix gump errors)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@414848 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases')
-rw-r--r--src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics.java b/src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics.java
index a700d9af45..7d9046cc3d 100644
--- a/src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics.java
+++ b/src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics.java
@@ -43,14 +43,14 @@ public class TestEscherGraphics extends TestCase
public void testGetFont() throws Exception
{
Font f = graphics.getFont();
- if (f.toString().indexOf("dialog") == -1)
+ if (f.toString().indexOf("dialog") == -1 && f.toString().indexOf("Dialog") == -1)
assertEquals("java.awt.Font[family=Arial,name=Arial,style=plain,size=10]", f.toString());
}
public void testGetFontMetrics() throws Exception
{
Font f = graphics.getFont();
- if (f.toString().indexOf("dialog") != -1)
+ if (f.toString().indexOf("dialog") != -1 || f.toString().indexOf("Dialog") != -1)
return;
FontMetrics fontMetrics = graphics.getFontMetrics(graphics.getFont());
assertEquals(7, fontMetrics.charWidth('X'));