diff options
author | Chris Bowditch <cbowditch@apache.org> | 2005-08-04 09:57:38 +0000 |
---|---|---|
committer | Chris Bowditch <cbowditch@apache.org> | 2005-08-04 09:57:38 +0000 |
commit | 6e568919212206226153af53a47b09c12d13bc1f (patch) | |
tree | 04347480e50f5a84e22b96c5e3b5d3a03b4249a1 /test/layoutengine/testcases | |
parent | 1955f62a143940cb36e2db4e1aeae98321b2046d (diff) | |
download | xmlgraphics-fop-6e568919212206226153af53a47b09c12d13bc1f.tar.gz xmlgraphics-fop-6e568919212206226153af53a47b09c12d13bc1f.zip |
added some checks to the test case to make it more effective in checking for regressions
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@227335 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/layoutengine/testcases')
-rw-r--r-- | test/layoutengine/testcases/letter-spacing1.xml | 7 | ||||
-rw-r--r-- | test/layoutengine/testcases/letter-spacing2.xml | 11 |
2 files changed, 17 insertions, 1 deletions
diff --git a/test/layoutengine/testcases/letter-spacing1.xml b/test/layoutengine/testcases/letter-spacing1.xml index ef9992f55..a17f2e1ed 100644 --- a/test/layoutengine/testcases/letter-spacing1.xml +++ b/test/layoutengine/testcases/letter-spacing1.xml @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> -<!-- $Id: text-decoration1.xml 198408 2005-02-09 21:38:31Z jeremias $ --> +<!-- $Id: letter-spacing1.xml 198408 2005-02-09 21:38:31Z jeremias $ --> <testcase> <info> <p> @@ -55,5 +55,10 @@ </fo:root> </fo> <checks> + <true xpath="not(//flow/block[1]/lineArea/text/@tlsadjust)"/> + <eval expected="2000" xpath="//flow/block[8]/lineArea[1]/text/@tlsadjust"/> + <eval expected="2000" xpath="//flow/block[8]/lineArea[2]/text/@tlsadjust"/> + <eval expected="2000" xpath="//flow/block[8]/lineArea[3]/text/@tlsadjust"/> + <eval expected="2000" xpath="//flow/block[8]/lineArea[4]/text/@tlsadjust"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/letter-spacing2.xml b/test/layoutengine/testcases/letter-spacing2.xml index 97826807b..e1c833bb4 100644 --- a/test/layoutengine/testcases/letter-spacing2.xml +++ b/test/layoutengine/testcases/letter-spacing2.xml @@ -55,5 +55,16 @@ </fo:root> </fo> <checks> + <true xpath="not(//flow/block[1]/lineArea/text/@tlsadjust)"/> + <true xpath="//flow/block[2]/lineArea/text/@twsadjust"/> + <eval expected="2000" xpath="//flow/block[8]/lineArea[1]/text/@tlsadjust"/> + <true xpath="//flow/block[8]/lineArea[1]/text/@twsadjust"/> + <eval expected="2000" xpath="//flow/block[8]/lineArea[2]/text/@tlsadjust"/> + <true xpath="//flow/block[8]/lineArea[2]/text/@twsadjust"/> + <eval expected="2000" xpath="//flow/block[8]/lineArea[3]/text/@tlsadjust"/> + <true xpath="//flow/block[8]/lineArea[3]/text/@twsadjust"/> + <eval expected="2000" xpath="//flow/block[8]/lineArea[4]/text/@tlsadjust"/> + <!-- text-align doesnt apply to last line Area --> + <true xpath="not(//flow/block[8]/lineArea[4]/text/@twsadjust)"/> </checks> </testcase> |