fix text height test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1747803 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c8627bb8b2
commit
12c7c32187
@ -185,8 +185,10 @@ public class TestXSLFTable {
|
||||
XSLFTableCell tc0 = tr.addCell();
|
||||
tc0.setText("bla bla bla bla");
|
||||
tab.setColumnWidth(0, 50);
|
||||
|
||||
assertEquals(88, tc0.getTextHeight(), 0);
|
||||
|
||||
// usually text height == 88, but font rendering is plattform dependent
|
||||
// so we use something more reliable
|
||||
assertTrue(tc0.getTextHeight() > 50);
|
||||
assertEquals(0, tc0.getLineWidth(), 0);
|
||||
|
||||
ppt.close();
|
||||
|
Loading…
Reference in New Issue
Block a user