summaryrefslogtreecommitdiffstats
path: root/tests/auto/qxmlformatter/input
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qxmlformatter/input')
-rw-r--r--tests/auto/qxmlformatter/input/K2-DirectConElemContent-46.xq1
-rw-r--r--tests/auto/qxmlformatter/input/adjacentNodes.xml16
-rw-r--r--tests/auto/qxmlformatter/input/adjacentNodes.xq1
-rw-r--r--tests/auto/qxmlformatter/input/classExample.xml1
-rw-r--r--tests/auto/qxmlformatter/input/classExample.xq1
-rw-r--r--tests/auto/qxmlformatter/input/documentElementWithWS.xml2
-rw-r--r--tests/auto/qxmlformatter/input/documentElementWithWS.xq1
-rw-r--r--tests/auto/qxmlformatter/input/documentNodes.xq7
-rw-r--r--tests/auto/qxmlformatter/input/elementsWithWS.xml12
-rw-r--r--tests/auto/qxmlformatter/input/elementsWithWS.xq1
-rw-r--r--tests/auto/qxmlformatter/input/emptySequence.xq2
-rw-r--r--tests/auto/qxmlformatter/input/indentedAdjacentNodes.xml16
-rw-r--r--tests/auto/qxmlformatter/input/indentedAdjacentNodes.xq1
-rw-r--r--tests/auto/qxmlformatter/input/indentedMixedContent.xml16
-rw-r--r--tests/auto/qxmlformatter/input/indentedMixedContent.xq1
-rw-r--r--tests/auto/qxmlformatter/input/mixedContent.xml1
-rw-r--r--tests/auto/qxmlformatter/input/mixedContent.xq1
-rw-r--r--tests/auto/qxmlformatter/input/mixedTopLevelContent.xq16
-rw-r--r--tests/auto/qxmlformatter/input/nodesAndWhitespaceAtomics.xq13
-rw-r--r--tests/auto/qxmlformatter/input/onlyDocumentNode.xq1
-rw-r--r--tests/auto/qxmlformatter/input/prolog.xml17
-rw-r--r--tests/auto/qxmlformatter/input/prolog.xq1
-rw-r--r--tests/auto/qxmlformatter/input/simpleDocument.xml4
-rw-r--r--tests/auto/qxmlformatter/input/simpleDocument.xq1
-rw-r--r--tests/auto/qxmlformatter/input/singleElement.xml1
-rw-r--r--tests/auto/qxmlformatter/input/singleElement.xq1
-rw-r--r--tests/auto/qxmlformatter/input/singleTextNode.xq1
-rw-r--r--tests/auto/qxmlformatter/input/textNodeAtomicValue.xq1
-rw-r--r--tests/auto/qxmlformatter/input/threeAtomics.xq1
29 files changed, 139 insertions, 0 deletions
diff --git a/tests/auto/qxmlformatter/input/K2-DirectConElemContent-46.xq b/tests/auto/qxmlformatter/input/K2-DirectConElemContent-46.xq
new file mode 100644
index 0000000..b4ffb53
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/K2-DirectConElemContent-46.xq
@@ -0,0 +1 @@
+<e>{1}{text{()}}{2}</e>
diff --git a/tests/auto/qxmlformatter/input/adjacentNodes.xml b/tests/auto/qxmlformatter/input/adjacentNodes.xml
new file mode 100644
index 0000000..a263c75
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/adjacentNodes.xml
@@ -0,0 +1,16 @@
+<e>
+ <?pi1 data1?>
+ <?pi2 data2?>
+ <!-- comment1 -->
+ <!-- comment2 -->
+ <?pi3 data3?>
+ <!-- comment3 -->
+ <?pi4 data4?>
+ <e2>
+ <!-- comment1 -->
+ <!-- comment2 -->
+ <?pi3 data3?>
+ <!-- comment3 -->
+ <?pi4 data4?>
+ </e2>
+</e>
diff --git a/tests/auto/qxmlformatter/input/adjacentNodes.xq b/tests/auto/qxmlformatter/input/adjacentNodes.xq
new file mode 100644
index 0000000..44605fb
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/adjacentNodes.xq
@@ -0,0 +1 @@
+doc("adjacentNodes.xml")
diff --git a/tests/auto/qxmlformatter/input/classExample.xml b/tests/auto/qxmlformatter/input/classExample.xml
new file mode 100644
index 0000000..b3321f2
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/classExample.xml
@@ -0,0 +1 @@
+<a><b/><c/><p>Some Text</p></a>
diff --git a/tests/auto/qxmlformatter/input/classExample.xq b/tests/auto/qxmlformatter/input/classExample.xq
new file mode 100644
index 0000000..bb10fc0
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/classExample.xq
@@ -0,0 +1 @@
+doc("classExample.xml")
diff --git a/tests/auto/qxmlformatter/input/documentElementWithWS.xml b/tests/auto/qxmlformatter/input/documentElementWithWS.xml
new file mode 100644
index 0000000..636923c
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/documentElementWithWS.xml
@@ -0,0 +1,2 @@
+<doc>
+</doc>
diff --git a/tests/auto/qxmlformatter/input/documentElementWithWS.xq b/tests/auto/qxmlformatter/input/documentElementWithWS.xq
new file mode 100644
index 0000000..cfa5fd6
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/documentElementWithWS.xq
@@ -0,0 +1 @@
+doc('documentElementWithWS.xml')
diff --git a/tests/auto/qxmlformatter/input/documentNodes.xq b/tests/auto/qxmlformatter/input/documentNodes.xq
new file mode 100644
index 0000000..fd8211b
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/documentNodes.xq
@@ -0,0 +1,7 @@
+document{()},
+document{()},
+document{()},
+document{<e/>},
+document{<!-- a comment -->},
+document{<?aPi?>},
+document{()}
diff --git a/tests/auto/qxmlformatter/input/elementsWithWS.xml b/tests/auto/qxmlformatter/input/elementsWithWS.xml
new file mode 100644
index 0000000..7b3e9a3
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/elementsWithWS.xml
@@ -0,0 +1,12 @@
+<doc>
+ someText
+ <ws1> </ws1>
+ somee text
+ <ws2>
+
+ </ws2>
+ <!-- comment -->
+ <ws3>
+ </ws3>
+
+</doc>
diff --git a/tests/auto/qxmlformatter/input/elementsWithWS.xq b/tests/auto/qxmlformatter/input/elementsWithWS.xq
new file mode 100644
index 0000000..6b3bffb
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/elementsWithWS.xq
@@ -0,0 +1 @@
+doc('elementsWithWS.xml')
diff --git a/tests/auto/qxmlformatter/input/emptySequence.xq b/tests/auto/qxmlformatter/input/emptySequence.xq
new file mode 100644
index 0000000..1418a72
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/emptySequence.xq
@@ -0,0 +1,2 @@
+(: This query simply evaluate to an empty sequence. :)
+()
diff --git a/tests/auto/qxmlformatter/input/indentedAdjacentNodes.xml b/tests/auto/qxmlformatter/input/indentedAdjacentNodes.xml
new file mode 100644
index 0000000..a263c75
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/indentedAdjacentNodes.xml
@@ -0,0 +1,16 @@
+<e>
+ <?pi1 data1?>
+ <?pi2 data2?>
+ <!-- comment1 -->
+ <!-- comment2 -->
+ <?pi3 data3?>
+ <!-- comment3 -->
+ <?pi4 data4?>
+ <e2>
+ <!-- comment1 -->
+ <!-- comment2 -->
+ <?pi3 data3?>
+ <!-- comment3 -->
+ <?pi4 data4?>
+ </e2>
+</e>
diff --git a/tests/auto/qxmlformatter/input/indentedAdjacentNodes.xq b/tests/auto/qxmlformatter/input/indentedAdjacentNodes.xq
new file mode 100644
index 0000000..201af14
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/indentedAdjacentNodes.xq
@@ -0,0 +1 @@
+doc("indentedAdjacentNodes.xml")
diff --git a/tests/auto/qxmlformatter/input/indentedMixedContent.xml b/tests/auto/qxmlformatter/input/indentedMixedContent.xml
new file mode 100644
index 0000000..a0340e6
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/indentedMixedContent.xml
@@ -0,0 +1,16 @@
+<!-- Already indented, and should stay so.. -->
+<mixedContent>
+ <p>char1<span/></p>
+ <p><span/>char2</p>
+ <p>char3<span/>char3</p>
+ <p>
+ <e1>
+ char 4
+ </e1>
+ <e2>
+ <p>char1<span/></p>
+ <p><span/>char2</p>
+ <p>char3<span/>char3</p>
+ </e2>
+ </p>
+</mixedContent>
diff --git a/tests/auto/qxmlformatter/input/indentedMixedContent.xq b/tests/auto/qxmlformatter/input/indentedMixedContent.xq
new file mode 100644
index 0000000..6845093
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/indentedMixedContent.xq
@@ -0,0 +1 @@
+doc("indentedMixedContent.xml")
diff --git a/tests/auto/qxmlformatter/input/mixedContent.xml b/tests/auto/qxmlformatter/input/mixedContent.xml
new file mode 100644
index 0000000..2987c44
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/mixedContent.xml
@@ -0,0 +1 @@
+<mixedContent><p>char1<span/></p><p><span/>char2</p><p>char3<span/>char3</p><p><e1>char4</e1><e2><p>char1<span/></p><p><span/>char2</p><p>char3<span/>char3</p></e2></p></mixedContent>
diff --git a/tests/auto/qxmlformatter/input/mixedContent.xq b/tests/auto/qxmlformatter/input/mixedContent.xq
new file mode 100644
index 0000000..ea56c7b
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/mixedContent.xq
@@ -0,0 +1 @@
+doc("mixedContent.xml")
diff --git a/tests/auto/qxmlformatter/input/mixedTopLevelContent.xq b/tests/auto/qxmlformatter/input/mixedTopLevelContent.xq
new file mode 100644
index 0000000..d862ec1
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/mixedTopLevelContent.xq
@@ -0,0 +1,16 @@
+(: Top level atomic values, mixed with elements. :)
+1,
+2,
+3,
+<e1/>,
+4,
+<e2/>,
+5,
+<e3>
+ {
+ (: This is a bit tricky. The receiver is sent the start of an element and then an atomic value. Must not
+ be indented. :)
+ 6
+ }
+</e3>,
+7
diff --git a/tests/auto/qxmlformatter/input/nodesAndWhitespaceAtomics.xq b/tests/auto/qxmlformatter/input/nodesAndWhitespaceAtomics.xq
new file mode 100644
index 0000000..a4b5674
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/nodesAndWhitespaceAtomics.xq
@@ -0,0 +1,13 @@
+xs:string(" "),
+xs:string(" "),
+<e1>
+{
+ xs:string(" "),
+ <e2/>,
+ xs:string(" ")
+}
+</e1>,
+xs:string(" "),
+xs:string(" "),
+<e3/>,
+xs:string(" ")
diff --git a/tests/auto/qxmlformatter/input/onlyDocumentNode.xq b/tests/auto/qxmlformatter/input/onlyDocumentNode.xq
new file mode 100644
index 0000000..c0c40ee
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/onlyDocumentNode.xq
@@ -0,0 +1 @@
+document{ () }
diff --git a/tests/auto/qxmlformatter/input/prolog.xml b/tests/auto/qxmlformatter/input/prolog.xml
new file mode 100644
index 0000000..1b48c58
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/prolog.xml
@@ -0,0 +1,17 @@
+<!-- comment1 -->
+<!-- comment2 -->
+<!-- comment3 -->
+<?pi1 data?>
+<!-- comment4 -->
+<?pi2 data?>
+<!-- comment5 -->
+<?pi3 data?>
+<e/>
+<!-- comment1 -->
+<!-- comment2 -->
+<!-- comment3 -->
+<?pi1 data?>
+<!-- comment4 -->
+<?pi2 data?>
+<!-- comment5 -->
+<?pi3 data?>
diff --git a/tests/auto/qxmlformatter/input/prolog.xq b/tests/auto/qxmlformatter/input/prolog.xq
new file mode 100644
index 0000000..6f4a72b
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/prolog.xq
@@ -0,0 +1 @@
+doc("prolog.xml")
diff --git a/tests/auto/qxmlformatter/input/simpleDocument.xml b/tests/auto/qxmlformatter/input/simpleDocument.xml
new file mode 100644
index 0000000..4bea9bd
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/simpleDocument.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- A comment -->
+<e>We try to simulate 189611</e>
+<!-- A second comment at the end. -->
diff --git a/tests/auto/qxmlformatter/input/simpleDocument.xq b/tests/auto/qxmlformatter/input/simpleDocument.xq
new file mode 100644
index 0000000..73702dd
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/simpleDocument.xq
@@ -0,0 +1 @@
+doc("simpleDocument.xml")
diff --git a/tests/auto/qxmlformatter/input/singleElement.xml b/tests/auto/qxmlformatter/input/singleElement.xml
new file mode 100644
index 0000000..c859d31
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/singleElement.xml
@@ -0,0 +1 @@
+<anElement/>
diff --git a/tests/auto/qxmlformatter/input/singleElement.xq b/tests/auto/qxmlformatter/input/singleElement.xq
new file mode 100644
index 0000000..a37691e
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/singleElement.xq
@@ -0,0 +1 @@
+doc("singleElement.xml")
diff --git a/tests/auto/qxmlformatter/input/singleTextNode.xq b/tests/auto/qxmlformatter/input/singleTextNode.xq
new file mode 100644
index 0000000..5d1e4ff
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/singleTextNode.xq
@@ -0,0 +1 @@
+text{"a text node"}
diff --git a/tests/auto/qxmlformatter/input/textNodeAtomicValue.xq b/tests/auto/qxmlformatter/input/textNodeAtomicValue.xq
new file mode 100644
index 0000000..b3cc124
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/textNodeAtomicValue.xq
@@ -0,0 +1 @@
+<e>a{3}</e>
diff --git a/tests/auto/qxmlformatter/input/threeAtomics.xq b/tests/auto/qxmlformatter/input/threeAtomics.xq
new file mode 100644
index 0000000..e95c3fe
--- /dev/null
+++ b/tests/auto/qxmlformatter/input/threeAtomics.xq
@@ -0,0 +1 @@
+1, 2, "Bam", 3e3, 5 + 5, data(<e>4</e>)