-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
80 additions
and
344 deletions.
There are no files selected for viewing
338 changes: 0 additions & 338 deletions
338
xprocspec/src/it/it-xprocspec/src/test/xprocspec/test.xprocspec
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
...t/it-xprocspec/src/test/xprocspec/tests/document-3.resources/document-3.xprocspec.skip-ci
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
20 changes: 20 additions & 0 deletions
20
xprocspec/src/it/it-xprocspec/src/test/xprocspec/tests/document-3.xprocspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
8 changes: 8 additions & 0 deletions
8
...rc/it/it-xprocspec/src/test/xprocspec/tests/script-2.resources/script-2.xprocspec.skip-ci
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.