summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2005-03-29 20:35:38 +0000
committerDaniel Veillard <veillard@src.gnome.org>2005-03-29 20:35:38 +0000
commite8524403716b8a5ffc4872376581ecf2b7e58240 (patch)
treea2e2c9b2e182e16bdfb708b7a5ba5634d4aaa9f6 /tests
parent7eebda2dde5dced763cf31f5df962745c2029e4b (diff)
downloadlibxslt-e8524403716b8a5ffc4872376581ecf2b7e58240.tar.gz
libxslt-e8524403716b8a5ffc4872376581ecf2b7e58240.tar.bz2
libxslt-e8524403716b8a5ffc4872376581ecf2b7e58240.zip
added test for bug #168196 fixed in libxml2 Daniel
* tests/general/bug-159.*, tests/general/Makefile.am, tests/docs/bug-159.*, tests/docs/Makefile.am: added test for bug #168196 fixed in libxml2 Daniel
Diffstat (limited to 'tests')
-rw-r--r--tests/docs/Makefile.am1
-rw-r--r--tests/docs/bug-159.xml1
-rw-r--r--tests/general/Makefile.am1
-rw-r--r--tests/general/bug-159.out8
-rw-r--r--tests/general/bug-159.xsl17
5 files changed, 28 insertions, 0 deletions
diff --git a/tests/docs/Makefile.am b/tests/docs/Makefile.am
index b0a1b08f..081f515c 100644
--- a/tests/docs/Makefile.am
+++ b/tests/docs/Makefile.am
@@ -158,6 +158,7 @@ EXTRA_DIST = \
bug-156.xml \
bug-157.xml \
bug-158.xml bug-158.doc \
+ bug-159.xml \
character.xml \
array.xml \
items.xml
diff --git a/tests/docs/bug-159.xml b/tests/docs/bug-159.xml
new file mode 100644
index 00000000..69d62f2c
--- /dev/null
+++ b/tests/docs/bug-159.xml
@@ -0,0 +1 @@
+<doc/>
diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am
index 785e511c..7891206b 100644
--- a/tests/general/Makefile.am
+++ b/tests/general/Makefile.am
@@ -167,6 +167,7 @@ EXTRA_DIST = \
bug-156.imp1.imp bug-156.imp2.imp \
bug-157.err bug-157.out bug-157.xsl \
bug-158.out bug-158.xsl \
+ bug-159.out bug-159.xsl \
character.out character.xsl \
character2.out character2.xsl \
itemschoose.out itemschoose.xsl \
diff --git a/tests/general/bug-159.out b/tests/general/bug-159.out
new file mode 100644
index 00000000..7187f99d
--- /dev/null
+++ b/tests/general/bug-159.out
@@ -0,0 +1,8 @@
+<html>
+<head><meta http-equiv="Content-Type" content="text/html; charset=ascii"></head>
+<body>
+<a href="#%D1%91">&#1105;</a><p>a lot of text</p>
+<a name="%D1%91"></a><h1>&#1105;</h1>
+<p>a lot of text</p>
+</body>
+</html>
diff --git a/tests/general/bug-159.xsl b/tests/general/bug-159.xsl
new file mode 100644
index 00000000..476d1e2a
--- /dev/null
+++ b/tests/general/bug-159.xsl
@@ -0,0 +1,17 @@
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+<xsl:output method="html" encoding="ascii"/>
+
+<xsl:template match="/">
+ <html>
+ <head/>
+ <body>
+ <a href="#&#x451;">&#x451;</a>
+ <p>a lot of text</p>
+
+ <a name="&#x451;"/><h1>&#x451;</h1>
+ <p>a lot of text</p>
+ </body>
+ </html>
+</xsl:template>
+
+</xsl:stylesheet>