Skip to content

Commit

Permalink
Merge branch 'issue-20'
Browse files Browse the repository at this point in the history
  • Loading branch information
josteinaj committed May 21, 2014
2 parents e5a8070 + 035079e commit dd27b8b
Show file tree
Hide file tree
Showing 7 changed files with 80 additions and 344 deletions.
338 changes: 0 additions & 338 deletions xprocspec/src/it/it-xprocspec/src/test/xprocspec/test.xprocspec

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="http://www.daisy.org/ns/xprocspec/xprocspec.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<x:description xmlns:c="http://www.w3.org/ns/xproc-step" xmlns:x="http://www.daisy.org/ns/xprocspec" xmlns:e="http://example.net/ns" script="../../steps/identity.xpl">

<!-- NOTE: file extension makes sure that this is not executed directly from the xproc-maven-plugin -->

<x:scenario label="error">
<x:call step="e:identity">
<x:option name="option.required" select="''"/>
</x:call>
<x:context label="the error document">
<x:document type="port" port="result"/>
</x:context>
<x:expect label="there should be no documents on the non-existing port" type="count" max="0"/>
</x:scenario>

</x:description>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="http://www.daisy.org/ns/xprocspec/xprocspec.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<x:description xmlns:c="http://www.w3.org/ns/xproc-step" xmlns:x="http://www.daisy.org/ns/xprocspec" script="../../../../../../../src/main/resources/content/xml/xproc/xprocspec.xpl">

<x:scenario label="running xprocspec test which refers to a non-existing port">
<x:call step="x:xprocspec">
<x:option name="temp-dir" select="$temp-dir"/>
<x:input port="source">
<x:document type="file" href="document-3.resources/document-3.xprocspec.skip-ci"/>
</x:input>
</x:call>

<x:context label="the result port">
<x:document type="port" port="result"/>
</x:context>
<x:expect label="should contain exactly one document" min="1" max="1" type="count"/>
<x:expect label="should contain a c:errors element as its last child element" type="xpath" test="/*/(*[last()] intersect c:*)/local-name()" equals="'errors'"/>
</x:scenario>

</x:description>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<x:description xmlns:x="http://www.daisy.org/ns/xprocspec" xmlns:ex="http://example.net/ns" script="../xproc/non_existing.xpl">

<x:scenario label="Non-existing XProc script">
<x:call step="ex:foo"/>
</x:scenario>

</x:description>
Loading

0 comments on commit dd27b8b

Please sign in to comment.