mirror of https://github.com/apache/poi.git
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
b7bd08760b
commit
fedb8afd81
|
@ -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