]> source.dussan.org Git - poi.git/commitdiff
On some JVMs, the problem family dialog has a capital D - change the skips to also...
authorNick Burch <nick@apache.org>
Fri, 16 Jun 2006 15:21:30 +0000 (15:21 +0000)
committerNick Burch <nick@apache.org>
Fri, 16 Jun 2006 15:21:30 +0000 (15:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@414848 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics.java

index a700d9af452e704e1a8c3e3cc11f56376ca24286..7d9046cc3dd3c247e3abbb2a662ecde095ab59f6 100644 (file)
@@ -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'));