diff options
author | William M. Brack <wbrack@src.gnome.org> | 2007-08-23 13:14:55 +0000 |
---|---|---|
committer | William M. Brack <wbrack@src.gnome.org> | 2007-08-23 13:14:55 +0000 |
commit | c93245787a0fa0a404b78aebc1f4856879dbfe21 (patch) | |
tree | 59840dae575d5dca5f1cc7c7fc25fb1189a7ae0c /tests | |
parent | f113790a2de45206342db7a4345509bac8402005 (diff) | |
download | libxslt-c93245787a0fa0a404b78aebc1f4856879dbfe21.tar.gz libxslt-c93245787a0fa0a404b78aebc1f4856879dbfe21.tar.bz2 libxslt-c93245787a0fa0a404b78aebc1f4856879dbfe21.zip |
added regression test for bug #469410
* tests/general/bug-165.[xsl,out,err], tests/docs/bug-165.xml,
tests/general/Makefile.am, tests/docs/Makefile.am:
added regression test for bug #469410
svn path=/trunk/; revision=1439
Diffstat (limited to 'tests')
-rw-r--r-- | tests/docs/Makefile.am | 1 | ||||
-rw-r--r-- | tests/docs/bug-165.xml | 10 | ||||
-rw-r--r-- | tests/general/Makefile.am | 1 | ||||
-rw-r--r-- | tests/general/bug-165.err | 4 | ||||
-rw-r--r-- | tests/general/bug-165.out | 8 | ||||
-rw-r--r-- | tests/general/bug-165.xsl | 9 |
6 files changed, 33 insertions, 0 deletions
diff --git a/tests/docs/Makefile.am b/tests/docs/Makefile.am index a801453e..559f554b 100644 --- a/tests/docs/Makefile.am +++ b/tests/docs/Makefile.am @@ -163,6 +163,7 @@ EXTRA_DIST = \ bug-161.xml \ bug-163.xml \ bug-164.xml \ + bug-165.xml \ character.xml \ array.xml \ items.xml diff --git a/tests/docs/bug-165.xml b/tests/docs/bug-165.xml new file mode 100644 index 00000000..7c2846b2 --- /dev/null +++ b/tests/docs/bug-165.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml">
+<body>
+<p><pPr><pStyle val="Quick1"/><tabs><tab val="left" pos="-1080"/><tab val="left" pos="-720"/><tab val="left" pos="0"/><tab val="num" pos="450"/><tab val="left" pos="1170"/><tab val="left" pos="1440"/><tab val="left" pos="2160"/><tab val="left" pos="2880"/><tab val="left" pos="3600"/><tab val="left" pos="4320"/><tab val="left" pos="5040"/><tab val="left" pos="5760"/><tab val="left" pos="6480"/><tab val="left" pos="7200"/><tab val="left" pos="7920"/><tab val="left" pos="8640"/><tab val="left" pos="9360"/></tabs><spacing line="242" lineRule="auto"/></pPr><r><t>1</t></r></p>
+<p><pPr><pStyle val="Quick1"/><tabs><tab val="left" pos="-1080"/><tab val="left" pos="-720"/><tab val="left" pos="0"/><tab val="num" pos="450"/><tab val="left" pos="1170"/><tab val="left" pos="1440"/><tab val="left" pos="2160"/><tab val="left" pos="2880"/><tab val="left" pos="3600"/><tab val="left" pos="4320"/><tab val="left" pos="5040"/><tab val="left" pos="5760"/><tab val="left" pos="6480"/><tab val="left" pos="7200"/><tab val="left" pos="7920"/><tab val="left" pos="8640"/><tab val="left" pos="9360"/></tabs><spacing line="242" lineRule="auto"/></pPr><r><t>2</t></r></p>
+</body>
+<styles>
+<style type="paragraph" customStyle="1" styleId="Quick1"><name val="Quick 1."/><basedOn val="Normal"/><uiPriority val="99"/><rsid val="0036577A"/><pPr><numPr><numId val="1"/></numPr><ind left="450" hanging="450"/></pPr></style>
+</styles>
+</document>
diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am index 618b23a5..b9655063 100644 --- a/tests/general/Makefile.am +++ b/tests/general/Makefile.am @@ -172,6 +172,7 @@ EXTRA_DIST = \ bug-161.out bug-161.xsl \ bug-163.out bug-163.xsl \ bug-164.out bug-164.xsl \ + bug-165.out bug-165.xsl bug-145.err \ character.out character.xsl \ character2.out character2.xsl \ itemschoose.out itemschoose.xsl \ diff --git a/tests/general/bug-165.err b/tests/general/bug-165.err new file mode 100644 index 00000000..d7564e2c --- /dev/null +++ b/tests/general/bug-165.err @@ -0,0 +1,4 @@ +runtime error: file ./bug-165.xsl line 6 element value-of +Variable 'pStyle' has not been declared. +runtime error: file ./bug-165.xsl line 6 element value-of +XPath evaluation returned no result. diff --git a/tests/general/bug-165.out b/tests/general/bug-165.out new file mode 100644 index 00000000..0d7d44b4 --- /dev/null +++ b/tests/general/bug-165.out @@ -0,0 +1,8 @@ +<?xml version="1.0"?> + + + + + + + diff --git a/tests/general/bug-165.xsl b/tests/general/bug-165.xsl new file mode 100644 index 00000000..d4573a9a --- /dev/null +++ b/tests/general/bug-165.xsl @@ -0,0 +1,9 @@ +<?xml version="1.0" ?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > + +<xsl:template match="p"> +<xsl:value-of select="preceding-sibling::p[not(pPr/pStyle = $pStyle)][1]/preceding-sibling::p/pPr/pStyle"/> +</xsl:template> + +</xsl:stylesheet> |