forked from xspec/xspec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into prettier-properties
- Loading branch information
Showing
118 changed files
with
1,675 additions
and
675 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
15 changes: 15 additions & 0 deletions
15
test/bad-context/apply-templates/child-constant-select.xspec
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,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<x:description stylesheet="mirror.xsl" | ||
xml:base="../../" | ||
xmlns:mirror="x-urn:test:mirror" | ||
xmlns:x="http://www.jenitennison.com/xslt/xspec" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
|
||
<x:scenario label="x:context/* exists, but hard-coded @select finds nothing"> | ||
<x:context select="/nonexistent"> | ||
<foo/> | ||
</x:context> | ||
<x:expect label="should be error" test="true()" /> | ||
</x:scenario> | ||
|
||
</x:description> |
16 changes: 16 additions & 0 deletions
16
test/bad-context/apply-templates/child-variable-select.xspec
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,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<x:description stylesheet="mirror.xsl" | ||
xml:base="../../" | ||
xmlns:mirror="x-urn:test:mirror" | ||
xmlns:x="http://www.jenitennison.com/xslt/xspec" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
|
||
<x:scenario label="x:context/* exists, but @select computation finds nothing"> | ||
<x:variable name="qualifier" select="'nonexistent'" as="xs:string" /> | ||
<x:context select="/*[@id=$qualifier]"> | ||
<foo/> | ||
</x:context> | ||
<x:expect label="should be error" test="true()" /> | ||
</x:scenario> | ||
|
||
</x:description> |
9 changes: 9 additions & 0 deletions
9
test/bad-context/apply-templates/external_child-constant-select.xspec
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,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<x:description run-as="external" | ||
stylesheet="../../mirror.xsl" | ||
xmlns:mirror="x-urn:test:mirror" | ||
xmlns:x="http://www.jenitennison.com/xslt/xspec" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
|
||
<x:import href="child-constant-select.xspec" /> | ||
</x:description> |
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,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<x:description stylesheet="mirror.xsl" | ||
xml:base="../../" | ||
xmlns:mirror="x-urn:test:mirror" | ||
xmlns:x="http://www.jenitennison.com/xslt/xspec" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
|
||
<x:scenario label="x:context/@href file does not exist"> | ||
<x:context href="nonexistent.xml" /> | ||
<x:expect label="should be error" test="true()" /> | ||
</x:scenario> | ||
|
||
</x:description> |
16 changes: 16 additions & 0 deletions
16
test/bad-context/apply-templates/href-constant-select-inherited-augmented.xspec
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,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<x:description stylesheet="mirror.xsl" | ||
xml:base="../../" | ||
xmlns:mirror="x-urn:test:mirror" | ||
xmlns:x="http://www.jenitennison.com/xslt/xspec" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
|
||
<x:scenario label="x:context/@href file exists, but hard-coded @select finds nothing"> | ||
<x:context href="node-selection.xml" /> | ||
<x:scenario label="at child level"> | ||
<x:context select="/nonexistent" /> | ||
<x:expect label="should be error" test="true()" /> | ||
</x:scenario> | ||
</x:scenario> | ||
|
||
</x:description> |
15 changes: 15 additions & 0 deletions
15
test/bad-context/apply-templates/href-constant-select-inherited.xspec
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,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<x:description stylesheet="mirror.xsl" | ||
xml:base="../../" | ||
xmlns:mirror="x-urn:test:mirror" | ||
xmlns:x="http://www.jenitennison.com/xslt/xspec" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
|
||
<x:scenario label="x:context/@href file exists, but hard-coded @select finds nothing,"> | ||
<x:context href="node-selection.xml" select="/nonexistent" /> | ||
<x:scenario label="inherited without more context,"> | ||
<x:expect label="should be error" test="true()" /> | ||
</x:scenario> | ||
</x:scenario> | ||
|
||
</x:description> |
13 changes: 13 additions & 0 deletions
13
test/bad-context/apply-templates/href-constant-select.xspec
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,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<x:description stylesheet="mirror.xsl" | ||
xml:base="../../" | ||
xmlns:mirror="x-urn:test:mirror" | ||
xmlns:x="http://www.jenitennison.com/xslt/xspec" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
|
||
<x:scenario label="x:context/@href file exists, but hard-coded @select finds nothing"> | ||
<x:context href="node-selection.xml" select="/nonexistent" /> | ||
<x:expect label="should be error" test="true()" /> | ||
</x:scenario> | ||
|
||
</x:description> |
14 changes: 14 additions & 0 deletions
14
test/bad-context/apply-templates/href-variable-select.xspec
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,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<x:description stylesheet="mirror.xsl" | ||
xml:base="../../" | ||
xmlns:mirror="x-urn:test:mirror" | ||
xmlns:x="http://www.jenitennison.com/xslt/xspec" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
|
||
<x:scenario label="x:context/@href file exists, but @select computation finds nothing"> | ||
<x:variable name="qualifier" select="'nonexistent'" as="xs:string" /> | ||
<x:context href="node-selection.xml" select="/*[@id=$qualifier]" /> | ||
<x:expect label="should be error" test="true()" /> | ||
</x:scenario> | ||
|
||
</x:description> |
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,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<x:description stylesheet="mirror.xsl" | ||
xml:base="../../" | ||
xmlns:mirror="x-urn:test:mirror" | ||
xmlns:x="http://www.jenitennison.com/xslt/xspec" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
|
||
<x:scenario label="x:context has no attributes and no children"> | ||
<x:context /> | ||
<x:expect label="should be error" test="true()" /> | ||
</x:scenario> | ||
|
||
</x:description> |
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,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<x:description stylesheet="mirror.xsl" | ||
xml:base="../../" | ||
xmlns:mirror="x-urn:test:mirror" | ||
xmlns:x="http://www.jenitennison.com/xslt/xspec" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
|
||
<x:scenario label="x:context has no information other than @select"> | ||
<x:context select="/missing-context" /> | ||
<x:expect label="should be error" test="true()" /> | ||
</x:scenario> | ||
|
||
</x:description> |
16 changes: 16 additions & 0 deletions
16
test/bad-context/call-template/child-constant-select.xspec
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,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<x:description stylesheet="mirror.xsl" | ||
xml:base="../../" | ||
xmlns:mirror="x-urn:test:mirror" | ||
xmlns:x="http://www.jenitennison.com/xslt/xspec" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
|
||
<x:scenario label="x:context/* exists, but hard-coded @select finds nothing"> | ||
<x:context select="/nonexistent"> | ||
<foo/> | ||
</x:context> | ||
<x:call template="mirror:context-mirror" /> | ||
<x:expect label="should be error" test="true()" /> | ||
</x:scenario> | ||
|
||
</x:description> |
17 changes: 17 additions & 0 deletions
17
test/bad-context/call-template/child-variable-select.xspec
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"?> | ||
<x:description stylesheet="mirror.xsl" | ||
xml:base="../../" | ||
xmlns:mirror="x-urn:test:mirror" | ||
xmlns:x="http://www.jenitennison.com/xslt/xspec" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
|
||
<x:scenario label="x:context/* exists, but @select computation finds nothing"> | ||
<x:variable name="qualifier" select="'nonexistent'" as="xs:string" /> | ||
<x:context select="/*[@id=$qualifier]"> | ||
<foo/> | ||
</x:context> | ||
<x:call template="mirror:context-mirror" /> | ||
<x:expect label="should be error" test="true()" /> | ||
</x:scenario> | ||
|
||
</x:description> |
10 changes: 10 additions & 0 deletions
10
test/bad-context/call-template/external_child-constant-select.xspec
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,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<x:description run-as="external" | ||
stylesheet="../../mirror.xsl" | ||
xmlns:mirror="x-urn:test:mirror" | ||
xmlns:x="http://www.jenitennison.com/xslt/xspec" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
|
||
<x:import href="child-constant-select.xspec" /> | ||
|
||
</x:description> |
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,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<x:description stylesheet="mirror.xsl" | ||
xml:base="../../" | ||
xmlns:mirror="x-urn:test:mirror" | ||
xmlns:x="http://www.jenitennison.com/xslt/xspec" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
|
||
<x:scenario label="x:context/@href file does not exist"> | ||
<x:context href="nonexistent.xml" /> | ||
<x:call template="mirror:context-mirror" /> | ||
<x:expect label="should be error" test="true()" /> | ||
</x:scenario> | ||
|
||
</x:description> |
17 changes: 17 additions & 0 deletions
17
test/bad-context/call-template/href-constant-select-inherited-augmented.xspec
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"?> | ||
<x:description stylesheet="mirror.xsl" | ||
xml:base="../../" | ||
xmlns:mirror="x-urn:test:mirror" | ||
xmlns:x="http://www.jenitennison.com/xslt/xspec" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
|
||
<x:scenario label="x:context/@href file exists, but hard-coded @select finds nothing"> | ||
<x:context href="node-selection.xml" /> | ||
<x:call template="mirror:context-mirror" /> | ||
<x:scenario label="at child level"> | ||
<x:context select="/nonexistent" /> | ||
<x:expect label="should be error" test="true()" /> | ||
</x:scenario> | ||
</x:scenario> | ||
|
||
</x:description> |
Oops, something went wrong.