mirror of https://github.com/apache/poi.git
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@414851 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
866a84452a
commit
82030466d1
|
@ -65,7 +65,7 @@ public class TestEscherGraphics2d extends TestCase
|
||||||
public void testGetFontMetrics() throws Exception
|
public void testGetFontMetrics() throws Exception
|
||||||
{
|
{
|
||||||
FontMetrics fontMetrics = graphics.getFontMetrics(graphics.getFont());
|
FontMetrics fontMetrics = graphics.getFontMetrics(graphics.getFont());
|
||||||
if (graphics.getFont().toString().indexOf("dialog") != -1) // if dialog is returned we can't run the test properly.
|
if (graphics.getFont().toString().indexOf("dialog") != -1 || graphics.getFont().toString().indexOf("Dialog") != -1) // if dialog is returned we can't run the test properly.
|
||||||
return;
|
return;
|
||||||
assertEquals(7, fontMetrics.charWidth('X'));
|
assertEquals(7, fontMetrics.charWidth('X'));
|
||||||
assertEquals("java.awt.Font[family=Arial,name=Arial,style=plain,size=10]", fontMetrics.getFont().toString());
|
assertEquals("java.awt.Font[family=Arial,name=Arial,style=plain,size=10]", fontMetrics.getFont().toString());
|
||||||
|
@ -87,7 +87,7 @@ public class TestEscherGraphics2d extends TestCase
|
||||||
public void testGetFont() throws Exception
|
public void testGetFont() throws Exception
|
||||||
{
|
{
|
||||||
Font f = graphics.getFont();
|
Font f = graphics.getFont();
|
||||||
if (graphics.getFont().toString().indexOf("dialog") != -1) // if dialog is returned we can't run the test properly.
|
if (graphics.getFont().toString().indexOf("dialog") != -1 || graphics.getFont().toString().indexOf("Dialog") != -1) // if dialog is returned we can't run the test properly.
|
||||||
return;
|
return;
|
||||||
|
|
||||||
assertEquals("java.awt.Font[family=Arial,name=Arial,style=plain,size=10]", f.toString());
|
assertEquals("java.awt.Font[family=Arial,name=Arial,style=plain,size=10]", f.toString());
|
||||||
|
|
Loading…
Reference in New Issue