]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
added some checks to the test case to make it more effective in checking for regressions
authorChris Bowditch <cbowditch@apache.org>
Thu, 4 Aug 2005 09:57:38 +0000 (09:57 +0000)
committerChris Bowditch <cbowditch@apache.org>
Thu, 4 Aug 2005 09:57:38 +0000 (09:57 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@227335 13f79535-47bb-0310-9956-ffa450edef68

test/layoutengine/testcases/letter-spacing1.xml
test/layoutengine/testcases/letter-spacing2.xml

index ef9992f55cba70e3b83170dc8d108fbe5c31fced..a17f2e1edd822da89b15990a799abca5acb54791 100644 (file)
@@ -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>
     </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>
index 97826807bf25ccd643b989b433bdfe5cc8fca33e..e1c833bb40d7b384083ce260d1abaa6ab5f30fdd 100644 (file)
     </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>