summaryrefslogtreecommitdiff
path: root/test/synckolab/parser/kolab3/xml
diff options
context:
space:
mode:
authorniko <niko>2012-10-27 00:43:25 (GMT)
committerniko <niko>2012-10-27 00:43:25 (GMT)
commit23f86ba282449381f8ed5dc82b50673a02c6b93f (patch)
treeb6ebeb34684c53bc09620727f0443c18be6be0f4 /test/synckolab/parser/kolab3/xml
parent3ce6a3cf783d624c84e0a05a6a03310ad43c6e9a (diff)
downloadsynckolab-23f86ba282449381f8ed5dc82b50673a02c6b93f.tar.gz
rewrite parsing
Diffstat (limited to 'test/synckolab/parser/kolab3/xml')
-rw-r--r--test/synckolab/parser/kolab3/xml/contact.complex.mime.xml7
-rw-r--r--test/synckolab/parser/kolab3/xml/contact.simple.mime.xml1
-rw-r--r--test/synckolab/parser/kolab3/xml/contact.test.mime.xml1
-rw-r--r--test/synckolab/parser/kolab3/xml/contact.test2.mime.xml1
-rw-r--r--test/synckolab/parser/kolab3/xml/contact.test3.mime.xml17
5 files changed, 24 insertions, 3 deletions
diff --git a/test/synckolab/parser/kolab3/xml/contact.complex.mime.xml b/test/synckolab/parser/kolab3/xml/contact.complex.mime.xml
index 1892809..193c291 100644
--- a/test/synckolab/parser/kolab3/xml/contact.complex.mime.xml
+++ b/test/synckolab/parser/kolab3/xml/contact.complex.mime.xml
@@ -8,8 +8,8 @@
<kind><text>individual</text></kind>
<fn><text>Displayname</text></fn>
<n>
- <surname>Firstname</surname>
- <given>Lastname</given>
+ <surname>Lastname</surname>
+ <given>Firstname</given>
</n>
<note>
<text>Notes</text>
@@ -70,7 +70,7 @@ IUt0Z9/7qv7bVKXME74jIbeLXQ+SU6zKjLemeREDIkhAwJIUNCyNieN8p14NWhutUuepdEP
zVeofxQbugWyivVRa/78r8A8Zf9CPOBzA0U70lC+PcK0qBtX5nQDCFDQsiQEDIkhAwJIWP3
fYPqevg5ig8ePPALynu7e72tdfbnk3m8je54eArF+8v7n6G8mOnza7xwaugbVLsDCSFDQsi
QEDIkhAwJIWP3tb0eNw2+MTnoyl7zLmlOx985h/DvwV6Nnk1qfNtaDc0QMiSEDAkhQ0LIkB
-AhhBBCCPEe8D+b5dDLeP4TXAAAAABJRU5ErkJggg</uri>
+AhhBBCCPEe8D+b5dDLeP4TXAAAAABJRU5ErkJggg==</uri>
</photo>
<tel>
<parameters><type><text>home</text></type></parameters>
@@ -99,6 +99,7 @@ AhhBBCCPEe8D+b5dDLeP4TXAAAAABJRU5ErkJggg</uri>
<text>second@email.org</text>
</email>
<x-custom><identifier>Profession</identifier><value>Profession</value></x-custom>
+ <x-custom><identifier>X-PreferMailFormat</identifier><value>unknown</value></x-custom>
<x-custom><identifier>X-AllowRemoteContent</identifier><value>true</value></x-custom>
</vcard>
</vcards> \ No newline at end of file
diff --git a/test/synckolab/parser/kolab3/xml/contact.simple.mime.xml b/test/synckolab/parser/kolab3/xml/contact.simple.mime.xml
index 36fe656..b507b69 100644
--- a/test/synckolab/parser/kolab3/xml/contact.simple.mime.xml
+++ b/test/synckolab/parser/kolab3/xml/contact.simple.mime.xml
@@ -17,6 +17,7 @@
<parameters><pref><integer>1</integer></pref></parameters>
<text>vkrause@kde.org</text>
</email>
+ <x-custom><identifier>X-PreferMailFormat</identifier><value>unknown</value></x-custom>
<x-custom><identifier>X-AllowRemoteContent</identifier><value>false</value></x-custom>
</vcard>
</vcards> \ No newline at end of file
diff --git a/test/synckolab/parser/kolab3/xml/contact.test.mime.xml b/test/synckolab/parser/kolab3/xml/contact.test.mime.xml
index 19e7b22..77eba92 100644
--- a/test/synckolab/parser/kolab3/xml/contact.test.mime.xml
+++ b/test/synckolab/parser/kolab3/xml/contact.test.mime.xml
@@ -36,6 +36,7 @@ with empty</text>
<code>1234</code>
<country>homecountry</country>
</adr>
+ <x-custom><identifier>X-PreferMailFormat</identifier><value>unknown</value></x-custom>
<x-custom><identifier>X-AllowRemoteContent</identifier><value>false</value></x-custom>
</vcard>
</vcards> \ No newline at end of file
diff --git a/test/synckolab/parser/kolab3/xml/contact.test2.mime.xml b/test/synckolab/parser/kolab3/xml/contact.test2.mime.xml
index 5a92b9b..8ecf7d8 100644
--- a/test/synckolab/parser/kolab3/xml/contact.test2.mime.xml
+++ b/test/synckolab/parser/kolab3/xml/contact.test2.mime.xml
@@ -21,6 +21,7 @@
<parameters><pref><integer>1</integer></pref></parameters>
<text>hans@wurst.de</text>
</email>
+ <x-custom><identifier>X-PreferMailFormat</identifier><value>unknown</value></x-custom>
<x-custom><identifier>X-AllowRemoteContent</identifier><value>false</value></x-custom>
</vcard>
</vcards> \ No newline at end of file
diff --git a/test/synckolab/parser/kolab3/xml/contact.test3.mime.xml b/test/synckolab/parser/kolab3/xml/contact.test3.mime.xml
new file mode 100644
index 0000000..52d2ebb
--- /dev/null
+++ b/test/synckolab/parser/kolab3/xml/contact.test3.mime.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<vcards xmlns="urn:ietf:params:xml:ns:vcard-4.0">
+<vcard>
+ <uid><uri>urn:uuid:pas-id-A4E937D838A897AD</uri></uid>
+ <x-kolab-version><text>3.0dev1</text></x-kolab-version>
+ <prodid><text>SyncKolab 2.9.0, Kolab resource</text></prodid>
+ <rev><timestamp>19700101T000000ZZ</timestamp></rev>
+ <kind><text>individual</text></kind>
+ <fn><text>cont2#öüä&amp;$</text></fn>
+ <email>
+ <parameters><pref><integer>1</integer></pref></parameters>
+ <text>weird@email.com</text>
+ </email>
+ <x-custom><identifier>X-PreferMailFormat</identifier><value>unknown</value></x-custom>
+ <x-custom><identifier>X-AllowRemoteContent</identifier><value>true</value></x-custom>
+</vcard>
+</vcards>