diff options
author | Jeremias Maerki <jeremias@apache.org> | 2006-02-02 16:20:22 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2006-02-02 16:20:22 +0000 |
commit | 8bdee8d2d9e0096928e41f006ff3485bb91b0149 (patch) | |
tree | 2d3a62fe7530d5c057825c68479872bfec44f73a /test | |
parent | 91d8c38fa99ca844c6c6eb4bfd131b8006884b4c (diff) | |
download | xmlgraphics-fop-8bdee8d2d9e0096928e41f006ff3485bb91b0149.tar.gz xmlgraphics-fop-8bdee8d2d9e0096928e41f006ff3485bb91b0149.zip |
Bugzilla #38453:
Bugfix: Text-decoration was not promoted if no text-decoration attribute was specified on a nested element.
Nice side-effect: more efficient evaluation of text-decoration.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@374425 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r-- | test/layoutengine/standard-testcases/text-decoration_2.xml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/layoutengine/standard-testcases/text-decoration_2.xml b/test/layoutengine/standard-testcases/text-decoration_2.xml index 04229fcc8..c481f6d2f 100644 --- a/test/layoutengine/standard-testcases/text-decoration_2.xml +++ b/test/layoutengine/standard-testcases/text-decoration_2.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- - Copyright 2005 The Apache Software Foundation + Copyright 2005-2006 The Apache Software Foundation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -32,6 +32,7 @@ <fo:flow flow-name="xsl-region-body"> <!-- nested inlines --> <fo:block>normal <fo:inline color="blue" text-decoration="underline">under <fo:inline color="red" font-size="14pt" text-decoration="line-through">through</fo:inline> <fo:inline text-decoration="none">none</fo:inline> under</fo:inline> normal</fo:block> + <fo:block color="blue" text-decoration="underline">Everything in this paragraph including this <fo:basic-link external-destination="http://xmlgraphics.apache.org/fop/">link</fo:basic-link> must be underlined.</fo:block> </fo:flow> </fo:page-sequence> </fo:root> @@ -84,5 +85,9 @@ <eval xpath="name(//flow/block[1]/lineArea/*[3])" expected="text"/> <eval xpath="//flow/block[1]/lineArea/*[3]/@color" expected="#000000"/> + <true xpath="//flow/block[2]/lineArea/text[1]/@underline-score"/> + <true xpath="//flow/block[2]/lineArea/inlineparent/text[1]/@underline-score"/> + <true xpath="//flow/block[2]/lineArea/text[2]/@underline-score"/> + </checks> </testcase> |