You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by ni...@apache.org on 2006/06/16 17:21:30 UTC

svn commit: r414848 - /jakarta/poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics.java

Author: nick
Date: Fri Jun 16 08:21:30 2006
New Revision: 414848

URL: http://svn.apache.org/viewvc?rev=414848&view=rev
Log:
On some JVMs, the problem family dialog has a capital D - change the skips to also skip on Dialog (should hopefully fix gump errors)

Modified:
    jakarta/poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics.java

Modified: jakarta/poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics.java
URL: http://svn.apache.org/viewvc/jakarta/poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics.java?rev=414848&r1=414847&r2=414848&view=diff
==============================================================================
--- jakarta/poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics.java (original)
+++ jakarta/poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics.java Fri Jun 16 08:21:30 2006
@@ -43,14 +43,14 @@
     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'));



---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/