summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2004-05-17 03:07:55 +0000
committerDaniel Veillard <veillard@src.gnome.org>2004-05-17 03:07:55 +0000
commitb92c9f6ef5602e841767028b762201a448defada (patch)
tree36d980bed49d600e4dfc6775d09f55333b4b9cbf /tests
parent42504dbb485340bfc2e05a513785ad720f438584 (diff)
downloadlibxslt-b92c9f6ef5602e841767028b762201a448defada.tar.gz
libxslt-b92c9f6ef5602e841767028b762201a448defada.tar.bz2
libxslt-b92c9f6ef5602e841767028b762201a448defada.zip
added regression test for old bug #127877 Daniel
* tests/general/bug-151*, tests/docs/bug-151.xml, tests/general/Makefile.am, tests/docs/Makefile.am: added regression test for old bug #127877 Daniel
Diffstat (limited to 'tests')
-rw-r--r--tests/docs/bug-152.xml1
-rw-r--r--tests/general/Makefile.am1
-rw-r--r--tests/general/bug-152.out12
-rw-r--r--tests/general/bug-152.xsl30
4 files changed, 44 insertions, 0 deletions
diff --git a/tests/docs/bug-152.xml b/tests/docs/bug-152.xml
new file mode 100644
index 00000000..69d62f2c
--- /dev/null
+++ b/tests/docs/bug-152.xml
@@ -0,0 +1 @@
+<doc/>
diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am
index 73f9a9bf..5200c8bf 100644
--- a/tests/general/Makefile.am
+++ b/tests/general/Makefile.am
@@ -159,6 +159,7 @@ EXTRA_DIST = \
bug-149.out bug-149.xsl \
bug-150.out bug-150.xsl \
bug-151.out bug-151.xsl \
+ bug-152.out bug-152.xsl \
character.out character.xsl \
character2.out character2.xsl \
itemschoose.out itemschoose.xsl \
diff --git a/tests/general/bug-152.out b/tests/general/bug-152.out
new file mode 100644
index 00000000..7bdd3377
--- /dev/null
+++ b/tests/general/bug-152.out
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="US-ASCII"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII" />
+ <style type="text/css" media="all">@import
+"pretty_xhtml.css";</style>
+ </head>
+ <body>
+ <h1>foo</h1>
+ </body>
+</html>
diff --git a/tests/general/bug-152.xsl b/tests/general/bug-152.xsl
new file mode 100644
index 00000000..513d0c30
--- /dev/null
+++ b/tests/general/bug-152.xsl
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:transform
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0" xmlns="http://www.w3.org/1999/xhtml">
+
+ <xsl:output
+ method="xml"
+ version="1.0"
+ indent="yes"
+ encoding="US-ASCII"
+ doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
+ doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
+ />
+
+ <xsl:template match="/">
+ <html>
+ <head>
+ <style type="text/css" media="all">@import
+"pretty_xhtml.css";</style>
+ </head>
+ <body>
+ <h1>foo</h1>
+ </body>
+ </html>
+ </xsl:template>
+
+</xsl:transform>
+
+
+