Skip to content

Commit

Permalink
Add some alternative error codes where they can be justified
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhkay committed Sep 25, 2018
1 parent 17a0dcd commit e3e2d03
Show file tree
Hide file tree
Showing 6 changed files with 766 additions and 659 deletions.
12 changes: 10 additions & 2 deletions fn/unparsed-text-lines.xml
Expand Up @@ -575,20 +575,28 @@
<test-case name="fn-unparsed-text-lines-038">
<description>Evaluates the "unparsed-text-lines" function with the argument set as follows: $href refers to a file whose encoding is invalid for utf-8.</description>
<created by="Tim Mills" on="2011-11-28"/>
<modified by="Michael Kay" on="2013-05-01" change="added alternative error code as per bug 21885"/>
<environment ref="unparsed-text-lines" />
<test>fn:unparsed-text-lines("http://www.w3.org/fots/unparsed-text/text-plain-utf-8-invalid.txt")</test>
<result>
<error code="FOUT1190" />
<any-of>
<error code="FOUT1200" />
<error code="FOUT1190" />
</any-of>
</result>
</test-case>

<test-case name="fn-unparsed-text-lines-039">
<description>Evaluates the "unparsed-text-lines" function with the argument set as follows: $href refers to a file which contains non-XML characters.</description>
<created by="Tim Mills" on="2011-11-28"/>
<modified by="Michael Kay" on="2013-05-01" change="added alternative error code as per bug 21885"/>
<environment ref="unparsed-text-lines" />
<test>fn:unparsed-text-lines("http://www.w3.org/fots/unparsed-text/non-xml-character.txt")</test>
<result>
<error code="FOUT1190" />
<any-of>
<error code="FOUT1200" />
<error code="FOUT1190" />
</any-of>
</result>
</test-case>

Expand Down
12 changes: 10 additions & 2 deletions fn/unparsed-text.xml
Expand Up @@ -563,20 +563,28 @@
<test-case name="fn-unparsed-text-038">
<description>Evaluates the "unparsed-text" function with the argument set as follows: $href refers to a file whose encoding is invalid for utf-8.</description>
<created by="Tim Mills" on="2011-11-28"/>
<modified by="Michael Kay" on="2018-09-24" change="added alternative error code as per bug 21885"/>
<environment ref="unparsed-text" />
<test>fn:unparsed-text("http://www.w3.org/fots/unparsed-text/text-plain-utf-8-invalid.txt")</test>
<result>
<error code="FOUT1190" />
<any-of>
<error code="FOUT1200" />
<error code="FOUT1190" />
</any-of>
</result>
</test-case>

<test-case name="fn-unparsed-text-039">
<description>Evaluates the "unparsed-text" function with the argument set as follows: $href refers to a file which contains non-XML characters.</description>
<created by="Tim Mills" on="2011-11-28"/>
<modified by="Michael Kay" on="2018-09-24" change="added alternative error code as per bug 21885"/>
<environment ref="unparsed-text" />
<test>fn:unparsed-text("http://www.w3.org/fots/unparsed-text/non-xml-character.txt")</test>
<result>
<error code="FOUT1190" />
<any-of>
<error code="FOUT1200" />
<error code="FOUT1190" />
</any-of>
</result>
</test-case>

Expand Down

0 comments on commit e3e2d03

Please sign in to comment.