poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r414848 - /jakarta/poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestEscherGraphics.java
Date Fri, 16 Jun 2006 15:21:30 GMT
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/


Mime
View raw message