mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-30 08:38:15 +01:00
added some of my own tests
This commit is contained in:
parent
a0083c14d2
commit
491b6c9739
10 changed files with 98 additions and 0 deletions
39
tests/XSLT/testsuite/TESTS/arabica-catalog.xml
Executable file
39
tests/XSLT/testsuite/TESTS/arabica-catalog.xml
Executable file
|
@ -0,0 +1,39 @@
|
|||
<test-suite>
|
||||
<test-catalog submitter="Arabica">
|
||||
<creator>JezUK</creator>
|
||||
<major-path>arabica</major-path>
|
||||
<date>2007-11-20</date>
|
||||
<test-case id="error01">
|
||||
<file-path>errors</file-path>
|
||||
<purpose>xsl:stylesheet within xsl:stylesheet should fail</purpose>
|
||||
<scenario operation="execution-error">
|
||||
<input-file role="principal-data">data.xml</input-file>
|
||||
<input-file role="principal-stylesheet">error01.xsl</input-file>
|
||||
</scenario>
|
||||
</test-case>
|
||||
<test-case id="error02">
|
||||
<file-path>errors</file-path>
|
||||
<purpose>xsl:stylesheet within xsl:stylesheet should fail</purpose>
|
||||
<scenario operation="execution-error">
|
||||
<input-file role="principal-data">data.xml</input-file>
|
||||
<input-file role="principal-stylesheet">error02.xsl</input-file>
|
||||
</scenario>
|
||||
</test-case>
|
||||
<test-case id="include01">
|
||||
<file-path>include</file-path>
|
||||
<scenario operation="standard">
|
||||
<input-file role="principal-data">data.xml</input-file>
|
||||
<input-file role="principal-stylesheet">include01.xsl</input-file>
|
||||
<output-file role="principal" compare="XML">include01.out</output-file>
|
||||
</scenario>
|
||||
</test-case>
|
||||
<test-case id="include02">
|
||||
<file-path>include</file-path>
|
||||
<scenario operation="standard">
|
||||
<input-file role="principal-data">data.xml</input-file>
|
||||
<input-file role="principal-stylesheet">include02.xsl</input-file>
|
||||
<output-file role="principal" compare="XML">include02.out</output-file>
|
||||
</scenario>
|
||||
</test-case>
|
||||
</test-catalog>
|
||||
</test-suite>
|
|
@ -0,0 +1 @@
|
|||
<yay/>
|
|
@ -0,0 +1 @@
|
|||
<yay/>
|
1
tests/XSLT/testsuite/TESTS/arabica/errors/data.xml
Normal file
1
tests/XSLT/testsuite/TESTS/arabica/errors/data.xml
Normal file
|
@ -0,0 +1 @@
|
|||
<data/>
|
13
tests/XSLT/testsuite/TESTS/arabica/errors/error01.xsl
Executable file
13
tests/XSLT/testsuite/TESTS/arabica/errors/error01.xsl
Executable file
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version="1.0">
|
||||
|
||||
<xsl:output method="xml"/>
|
||||
|
||||
<xsl:stylesheet version="1.0"/>
|
||||
|
||||
<xsl:template match="/">
|
||||
<oh-dear/>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
13
tests/XSLT/testsuite/TESTS/arabica/errors/error02.xsl
Executable file
13
tests/XSLT/testsuite/TESTS/arabica/errors/error02.xsl
Executable file
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version="1.0">
|
||||
|
||||
<xsl:output method="xml"/>
|
||||
|
||||
<xsl:include href="error01.xsl"/>
|
||||
|
||||
<xsl:template match="/">
|
||||
<whoops/>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
1
tests/XSLT/testsuite/TESTS/arabica/include/data.xml
Normal file
1
tests/XSLT/testsuite/TESTS/arabica/include/data.xml
Normal file
|
@ -0,0 +1 @@
|
|||
<data/>
|
9
tests/XSLT/testsuite/TESTS/arabica/include/include01.xsl
Executable file
9
tests/XSLT/testsuite/TESTS/arabica/include/include01.xsl
Executable file
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version="1.0">
|
||||
|
||||
<xsl:output method="xml"/>
|
||||
|
||||
<xsl:include href="include01inc.xsl"/>
|
||||
|
||||
</xsl:stylesheet>
|
11
tests/XSLT/testsuite/TESTS/arabica/include/include01inc.xsl
Executable file
11
tests/XSLT/testsuite/TESTS/arabica/include/include01inc.xsl
Executable file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version="1.0">
|
||||
|
||||
<xsl:output method="xml"/>
|
||||
|
||||
<xsl:template match="/">
|
||||
<yay/>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
9
tests/XSLT/testsuite/TESTS/arabica/include/include02.xsl
Executable file
9
tests/XSLT/testsuite/TESTS/arabica/include/include02.xsl
Executable file
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version="1.0">
|
||||
|
||||
<xsl:output method="xml"/>
|
||||
|
||||
<xsl:include href="include01.xsl"/>
|
||||
|
||||
</xsl:stylesheet>
|
Loading…
Add table
Reference in a new issue