Add info on test dependencies (dtd, serialisation)
authorMichael Kay <mike@saxonica.com>
Tue, 15 Aug 2017 15:34:48 +0100
changeset 1742 b6acc0e5e3af
parent 1741 03afa9383c55
child 1743 d4514cf69148
Add info on test dependencies (dtd, serialisation)
tests/insn/attribute/_attribute-test-set.xml
tests/insn/copy/_copy-test-set.xml
tests/insn/for-each-group/_for-each-group-test-set.xml
tests/misc/bug/_bug-test-set.xml
tests/misc/bug/bug-6301.xsl
tests/type/arrays/_arrays-test-set.xml
--- a/tests/insn/attribute/_attribute-test-set.xml	Tue Aug 15 15:34:04 2017 +0100
+++ b/tests/insn/attribute/_attribute-test-set.xml	Tue Aug 15 15:34:48 2017 +0100
@@ -391,15 +391,18 @@
    <test-case name="attribute-1101">
       <description>Verify that attributes that contain text nodes with a newline, the output must contain a character reference.</description>
       <created by="Michael Kay" on="2012-11-07"/>
+      <modified by="Michael Kay" on="2017-08-10" change="Revert to original intent as a serialization test"/>
       <environment ref="attribute-11"/>
       <dependencies>
          <spec value="XSLT10+"/>
+         <feature value="serialization" satisfied="true"/>
       </dependencies>
       <test>
          <stylesheet file="attribute-1101.xsl"/>
+         <output serialize="yes"/>
       </test>
       <result>
-         <assert-xml><![CDATA[<Out attr1="x&#xA;&#x9;  y"/>]]></assert-xml>
+         <serialization-matches><![CDATA[attr1=["']x&#(0*10|x0*A);&#x?0*9;  y["']/>]]></serialization-matches>
       </result>
    </test-case>
 
--- a/tests/insn/copy/_copy-test-set.xml	Tue Aug 15 15:34:04 2017 +0100
+++ b/tests/insn/copy/_copy-test-set.xml	Tue Aug 15 15:34:48 2017 +0100
@@ -589,6 +589,7 @@
       </environment>
       <dependencies>
          <spec value="XSLT10+"/>
+         <feature value="dtd"/>
       </dependencies>
       <test>
          <stylesheet file="copy-0901.xsl"/>
@@ -1025,6 +1026,7 @@
       </environment>
       <dependencies>
          <spec value="XSLT10+"/>
+         <feature value="dtd"/>
       </dependencies>
       <test>
          <stylesheet file="copy-1301.xsl"/>
@@ -1049,6 +1051,7 @@
       </environment>
       <dependencies>
          <spec value="XSLT10+"/>
+         <feature value="dtd"/>
       </dependencies>
       <test>
          <stylesheet file="copy-1401.xsl"/>
--- a/tests/insn/for-each-group/_for-each-group-test-set.xml	Tue Aug 15 15:34:04 2017 +0100
+++ b/tests/insn/for-each-group/_for-each-group-test-set.xml	Tue Aug 15 15:34:48 2017 +0100
@@ -436,7 +436,6 @@
       </test>
       <result>
          <assert-xml><![CDATA[<not-html><body><h2>Bug Summary (8)</h2><table><tr><th>ui (5)</th><th>core (3)</th></tr><tr><td>ace (3)<br/>gary (2)</td><td>tim (2)<br/>tom (1)</td></tr></table></body></not-html>]]></assert-xml>
-         <assert-serialization method="html" file="group012.out"/>
       </result>
    </test-case>
 
--- a/tests/misc/bug/_bug-test-set.xml	Tue Aug 15 15:34:04 2017 +0100
+++ b/tests/misc/bug/_bug-test-set.xml	Tue Aug 15 15:34:48 2017 +0100
@@ -201,6 +201,7 @@
       <environment ref="bug-03"/>
       <dependencies>
          <spec value="XSLT20+"/>
+         <feature value="serialization" satisfied="true"/>
       </dependencies>
       <test>
          <stylesheet file="bug-0304.xsl"/>
@@ -464,6 +465,7 @@
       </environment>
       <dependencies>
          <spec value="XSLT10+"/>
+         <feature value="dtd"/>
       </dependencies>
       <test>
          <stylesheet file="bug-0901.xsl"/>
@@ -597,6 +599,7 @@
       </environment>
       <dependencies>
          <spec value="XSLT10+"/>
+         <feature value="serialization" satisfied="true"/>
       </dependencies>
       <test>
          <stylesheet file="bug-1301.xsl"/>
@@ -692,6 +695,7 @@
       <environment ref="bug-14"/>
       <dependencies>
          <spec value="XSLT10+"/>
+         <feature value="serialization" satisfied="true"/>
       </dependencies>
       <test>
          <stylesheet file="bug-1405.xsl"/>
@@ -711,6 +715,7 @@
       <environment ref="bug-14"/>
       <dependencies>
          <spec value="XSLT10+"/>
+         <feature value="serialization" satisfied="true"/>
       </dependencies>
       <test>
          <stylesheet file="bug-1406.xsl"/>
@@ -780,6 +785,7 @@
       </environment>
       <dependencies>
          <spec value="XSLT20+"/>
+         <feature value="serialization" satisfied="true"/>
       </dependencies>
       <test>
          <stylesheet file="bug-1701.xsl"/>
@@ -919,6 +925,7 @@
       <dependencies>
          <spec value="XSLT20+"/>
          <feature value="namespace_axis"/>
+         <feature value="serialization" satisfied="true"/>
       </dependencies>
       <test>
          <stylesheet file="bug-2201.xsl"/>
@@ -1160,6 +1167,7 @@
       </environment>
       <dependencies>
          <spec value="XSLT10+"/>
+         <feature value="serialization" satisfied="true"/>
       </dependencies>
       <test>
          <stylesheet file="bug-3001.xsl"/>
@@ -1275,6 +1283,7 @@
       </environment>
       <dependencies>
          <spec value="XSLT10+"/>
+         <feature value="serialization" satisfied="true"/>
       </dependencies>
       <test>
          <stylesheet file="bug-3501.xsl"/>
@@ -1376,6 +1385,7 @@
    <test-case name="bug-4001">
       <description>BUG 5.5/tba DESCRIPTION: Escaping of ] ] &gt; works incorrectly</description>
       <created by="Michael Kay" on="2012-11-07"/>
+      <modified by="Michael Kay" on="2017-08-10" change="Make this a serialization test as originally intended"/>
       <environment>
          <source role=".">
             <content><![CDATA[<doc>text ]]&gt; more text</doc>]]></content>
@@ -1383,12 +1393,14 @@
       </environment>
       <dependencies>
          <spec value="XSLT10+"/>
+         <feature value="serialization" satisfied="true"/>
       </dependencies>
       <test>
          <stylesheet file="bug-4001.xsl"/>
+         <output serialize="yes"/>
       </test>
       <result>
-         <assert-xml><![CDATA[<doc>text ]]&gt; more text</doc>]]></assert-xml>
+         <serialization-matches><![CDATA[<doc>text \]\]&gt; more text</doc>]]></serialization-matches>
       </result>
    </test-case>
 
@@ -1756,6 +1768,7 @@
       </environment>
       <dependencies>
          <spec value="XSLT10+"/>
+         <feature value="serialization" satisfied="true"/>
       </dependencies>
       <test>
          <stylesheet file="bug-5601.xsl"/>
@@ -1897,6 +1910,7 @@
    <test-case name="bug-6301">
       <description>Bug 788748 reported by Oliver Becker, ClassCastException</description>
       <created by="Michael Kay" on="2012-11-07"/>
+      <modified by="Michael Kay" on="2017-08-10" change="Deliver well-formed XML output"/>
       <environment>
          <source role="." file="bug-63.xml"/>
       </environment>
@@ -1907,7 +1921,7 @@
          <stylesheet file="bug-6301.xsl"/>
       </test>
       <result>
-         <assert-xml file="bug-6301.out"/>
+         <assert>/out = "2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997"</assert>
       </result>
    </test-case>
 
--- a/tests/misc/bug/bug-6301.xsl	Tue Aug 15 15:34:04 2017 +0100
+++ b/tests/misc/bug/bug-6301.xsl	Tue Aug 15 15:34:48 2017 +0100
@@ -6,6 +6,7 @@
 <!-- Bug 788748 reported by Oliver Becker, ClassCastException -->
 
 <template match="/">
+  <element name="out" namespace="">
     <value-of select="2,
 for $x in (3 to 1000) 
 return 
@@ -18,6 +19,7 @@
   then $x 
   else ()" 
 separator=", " />
+  </element>
 </template>
 
 </stylesheet>
--- a/tests/type/arrays/_arrays-test-set.xml	Tue Aug 15 15:34:04 2017 +0100
+++ b/tests/type/arrays/_arrays-test-set.xml	Tue Aug 15 15:34:48 2017 +0100
@@ -177,7 +177,7 @@
       <description>Non-Streaming square-array expression - striding operand, apply-templates to array</description>
       <keywords>ParenthesizedExpr mixed-posture leading-lone-slash striding xsl:apply-templates PathExpr positional-predicate</keywords>
       <created by="Michael Kay" on="2016-12-19"/>
-      <created by="Michael Kay" on="2017-08-10" change="more precise result assertion"/>
+      <modified by="Michael Kay" on="2017-08-10" change="more precise result assertion"/>
       <environment ref="square-array-A"/>
       <test>
          <initial-template name="r-019"/>