diff options
author | Andreas L. Delmelle <adelmelle@apache.org> | 2008-02-07 22:32:27 +0000 |
---|---|---|
committer | Andreas L. Delmelle <adelmelle@apache.org> | 2008-02-07 22:32:27 +0000 |
commit | e3d7d048142f35bf93b0ba9f1294124de49be34e (patch) | |
tree | 0a49f76ebf72a64739f91ecaffe620bee70556cf /test/fotree | |
parent | b3c8c500256e67344c6b4cc91c045a04e8e65e36 (diff) | |
download | xmlgraphics-fop-e3d7d048142f35bf93b0ba9f1294124de49be34e.tar.gz xmlgraphics-fop-e3d7d048142f35bf93b0ba9f1294124de49be34e.zip |
Tweak: early percentage resolution by the parser (if the base is known and absolute). Reduces the number of PercentLength instances in favor of cached FixedLengths.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@619670 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/fotree')
-rw-r--r-- | test/fotree/testcases/font-shorthand-test.fo | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/fotree/testcases/font-shorthand-test.fo b/test/fotree/testcases/font-shorthand-test.fo index b6666087f..e574b3b24 100644 --- a/test/fotree/testcases/font-shorthand-test.fo +++ b/test/fotree/testcases/font-shorthand-test.fo @@ -29,7 +29,7 @@ <test:assert property="font-size" expected="10000mpt"/> <test:assert property="font-weight" expected="700" /> <test:assert property="font-style" expected="NORMAL" /> - <test:assert property="line-height.optimum" expected="120.0%" /> + <test:assert property="line-height.optimum" expected="12000mpt" /> <test:assert property="font-variant" expected="NORMAL" /> </fo:block> <fo:block font="italic small-caps 14pt 'Times New Roman', serif"> @@ -37,7 +37,7 @@ <test:assert property="font-size" expected="14000mpt"/> <test:assert property="font-weight" expected="400" /> <test:assert property="font-style" expected="ITALIC" /> - <test:assert property="line-height.optimum" expected="120.0%" /> + <test:assert property="line-height.optimum" expected="16800mpt" /> <test:assert property="font-variant" expected="SMALL_CAPS" /> Test font shorthand </fo:block> @@ -46,7 +46,7 @@ <test:assert property="font-size" expected="14000mpt"/> <test:assert property="font-weight" expected="700" /> <test:assert property="font-style" expected="ITALIC" /> - <test:assert property="line-height.optimum" expected="80.0%" /> + <test:assert property="line-height.optimum" expected="11200mpt" /> <test:assert property="font-variant" expected="NORMAL" /> Test font shorthand </fo:block> @@ -55,7 +55,7 @@ <test:assert property="font-size" expected="20736mpt"/> <test:assert property="font-weight" expected="400" /> <test:assert property="font-style" expected="NORMAL" /> - <test:assert property="line-height.optimum" expected="140.0%" /> + <test:assert property="line-height.optimum" expected="29030mpt" /> <test:assert property="font-variant" expected="NORMAL" /> Test font shorthand </fo:block> @@ -65,7 +65,7 @@ <test:assert property="font-size" expected="14000mpt"/> <test:assert property="font-weight" expected="700" /> <test:assert property="font-style" expected="ITALIC" /> - <test:assert property="line-height.optimum" expected="80.0%" /> + <test:assert property="line-height.optimum" expected="11200mpt" /> <test:assert property="font-variant" expected="NORMAL" /> Test font shorthand inheritance </fo:block> |