diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2009-03-23 09:34:13 (GMT) |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2009-03-23 09:34:13 (GMT) |
commit | 67ad0519fd165acee4a4d2a94fa502e9e4847bd0 (patch) | |
tree | 1dbf50b3dff8d5ca7e9344733968c72704eb15ff /tests/auto/xmlpatternsxqts/summarizeBaseline.xsl | |
download | Qt-67ad0519fd165acee4a4d2a94fa502e9e4847bd0.zip Qt-67ad0519fd165acee4a4d2a94fa502e9e4847bd0.tar.gz Qt-67ad0519fd165acee4a4d2a94fa502e9e4847bd0.tar.bz2 |
Long live Qt!
Diffstat (limited to 'tests/auto/xmlpatternsxqts/summarizeBaseline.xsl')
-rw-r--r-- | tests/auto/xmlpatternsxqts/summarizeBaseline.xsl | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/auto/xmlpatternsxqts/summarizeBaseline.xsl b/tests/auto/xmlpatternsxqts/summarizeBaseline.xsl new file mode 100644 index 0000000..af74bd1 --- /dev/null +++ b/tests/auto/xmlpatternsxqts/summarizeBaseline.xsl @@ -0,0 +1,25 @@ +<xsl:stylesheet
+ version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:m="http://www.w3.org/2005/02/query-test-XQTSResult">
+
+ <!-- Simply outputs a list of what test cases that failed. -->
+
+ <xsl:output method="text"/>
+
+ <xsl:template match="/">
+ <xsl:text>Failures: </xsl:text>
+ <xsl:apply-templates select="m:test-suite-result/m:test-case">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ </xsl:template>
+
+ <xsl:template match="m:test-case[@result = 'fail']">
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="@name"/>
+ <xsl:text> </xsl:text>
+ </xsl:template>
+
+</xsl:stylesheet>
+<!-- vim: et:ts=4:sw=4:sts=4
+-->
|