summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/synckolab/parser/kolab2/contactTest.js16
-rw-r--r--test/synckolab/parser/kolab3/xml/contact.complex.mime.xml2
-rw-r--r--test/synckolab/parser/kolab3/xml/list.test1.eml.xml4
3 files changed, 17 insertions, 5 deletions
diff --git a/test/synckolab/parser/kolab2/contactTest.js b/test/synckolab/parser/kolab2/contactTest.js
index 6d79eb8..2ae83f1 100644
--- a/test/synckolab/parser/kolab2/contactTest.js
+++ b/test/synckolab/parser/kolab2/contactTest.js
@@ -12,9 +12,8 @@ load("test/lib/testOverride.js");
test("skolab2 ynckolab.addressbookTools.parseMessageContent", function(){
equal(null, synckolab.addressbookTools.parseMessageContent(null), "parsing a null message");
- var testFiles = ["contactMinimalTest", "contactFullTest", "list.test", "list.test2"];
-
+ var testFiles = ["contactMinimalTest", "contactFullTest", "list.test", "list.test2"];
var content, entry, jsonEntry;
for(var i = 0; i < testFiles.length; i++) {
@@ -47,4 +46,17 @@ test("skolab2 ynckolab.addressbookTools.parseMessageContent", function(){
});
+/*
+var testFiles = ["contactMinimalTest", "contactFullTest", "list.test", "list.test2"];
+var content, entry, jsonEntry;
+
+for(var i = 0; i < testFiles.length; i++) {
+ var src = testFiles[i];
+
+ content = readFile("test/synckolab/parser/kolab2/raw/"+src+".xml");
+ entry = synckolab.addressbookTools.parseMessageContent(content);
+ content = readFile("test/synckolab/parser/kolab2/json/"+src+".json");
+ jsonEntry = JSON.parse(content);
+}
+*/ \ No newline at end of file
diff --git a/test/synckolab/parser/kolab3/xml/contact.complex.mime.xml b/test/synckolab/parser/kolab3/xml/contact.complex.mime.xml
index a03f02b..d6a1683 100644
--- a/test/synckolab/parser/kolab3/xml/contact.complex.mime.xml
+++ b/test/synckolab/parser/kolab3/xml/contact.complex.mime.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<vcards xmlns="urn:ietf:params:xml:ns:vcard-4.0">
<vcard>
- <uid><uri>urn:uuid:Huu5X7hfYy</uri></uid>
+ <uid><urn>urn:uuid:Huu5X7hfYy</urn></uid>
<x-kolab-version><text>3.0dev1</text></x-kolab-version>
<prodid><text>SyncKolab 3.0.0, Kolab resource</text></prodid>
<rev><timestamp>19700101T000000ZZ</timestamp></rev>
diff --git a/test/synckolab/parser/kolab3/xml/list.test1.eml.xml b/test/synckolab/parser/kolab3/xml/list.test1.eml.xml
index 3457c17..bd68749 100644
--- a/test/synckolab/parser/kolab3/xml/list.test1.eml.xml
+++ b/test/synckolab/parser/kolab3/xml/list.test1.eml.xml
@@ -11,12 +11,12 @@
<member>
<dn><text>testöä lastname</text></dn>
<email><text>email@mail.com</text></email>
- <uid><urn>urn:uuid:pas-id-1D84CEA337CD1878</urn></uid>
+ <uid><uri>urn:uuid:pas-id-1D84CEA337CD1878</uri></uid>
</member>
<member>
<dn><text>cont2#öüä&amp;$</text></dn>
<email><text>weird@email.com</text></email>
- <uid><urn>urn:uuid:pas-id-A4E937D838A897AD</urn></uid>
+ <uid><uri>urn:uuid:pas-id-A4E937D838A897AD</uri></uid>
</member>
<note><text>list-description</text></note>
</vcard>