Skip to content

Commit

Permalink
Fixed regression test for #4 and #44. Added catalog.xml.
Browse files Browse the repository at this point in the history
  • Loading branch information
josteinaj committed Jan 30, 2017
1 parent 42ab1a6 commit dff0414
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<?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:x="http://www.daisy.org/ns/xprocspec" xmlns:ex="http://example.net/ns" script="../../steps/temp-dir-option.xpl">

<x:scenario label="temp-dir">
<x:scenario label="temp-dir" pending="Not clear yet whether this is a bug or not; see #44">
<x:call step="ex:temp-dir-option">
<x:option name="temp-dir" select="'xprocspec temp-dir value'"/>
<x:option name="output-dir" select="'xprocspec output-dir value'"/>
<x:option name="output-dir" select="$temp-dir"/>
</x:call>
<x:context label="the result">
<x:document type="port" port="result"/>
</x:context>
<x:expect type="count" label="there should be one document on the result port" min="1" max="1"/>
<x:expect type="xpath" label="the value of the temp-dir attribute should be 'xprocspec temp-dir value'" test="/*/@temp-dir" equals="'xprocspec temp-dir value'"/>
<x:expect type="xpath" label="the value of the output-dir attribute should be 'xprocspec output-dir value'" test="/*/@output-dir" equals="'xprocspec output-dir value'"/>
<x:expect type="xpath" label="the value of the output-dir option should not equal the temp-dir value" test="/*/@output-dir" equals="/*/@temp-dir" xfail="true"/>
<x:expect type="xpath" label="the value of the $temp-dir variable should not equal the temp-dir value" test="$temp-dir" equals="/*/@temp-dir" xfail="true"/>
</x:scenario>

</x:description>
4 changes: 4 additions & 0 deletions xprocspec/catalog.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<nextCatalog catalog="src/main/resources/META-INF/catalog.xml"/>
</catalog>

0 comments on commit dff0414

Please sign in to comment.