summaryrefslogtreecommitdiff
path: root/test/synckolab/parser/kolab3
diff options
context:
space:
mode:
authorniko <niko>2012-10-17 23:15:14 (GMT)
committerniko <niko>2012-10-17 23:15:14 (GMT)
commit529d1b4304aa3bd87414c28ffaeae0b19a44f0f2 (patch)
treec751815e547b7b99a1de692bb98c17e2ff92e99b /test/synckolab/parser/kolab3
parent397080338185118728c46f9bd09a92ec72f163c9 (diff)
downloadsynckolab-529d1b4304aa3bd87414c28ffaeae0b19a44f0f2.tar.gz
kolab2 dist lists
Diffstat (limited to 'test/synckolab/parser/kolab3')
-rw-r--r--test/synckolab/parser/kolab3/contactTest.js5
-rw-r--r--test/synckolab/parser/kolab3/xml/list.test1.eml.xml13
2 files changed, 9 insertions, 9 deletions
diff --git a/test/synckolab/parser/kolab3/contactTest.js b/test/synckolab/parser/kolab3/contactTest.js
index 51f0044..d5030c7 100644
--- a/test/synckolab/parser/kolab3/contactTest.js
+++ b/test/synckolab/parser/kolab3/contactTest.js
@@ -33,8 +33,9 @@ test("kolab3 synckolab.addressbookTools.parseMessageContent", function(){
content = synckolab.addressbookTools.card2Kolab3(entry);
}
xmlcontent = readFile("test/synckolab/parser/kolab3/xml/"+src + ".xml");
- if (xmlcontent.replace(/[\n\r\t ]/g, "").length != content.replace(/[\n\r\t ]/g, "").length) {
- var diff = diffString(xmlcontent, content)
+ if (xmlcontent.replace(/[\n\r\t ]/g, "").length !== content.replace(/[\n\r\t ]/g, "").length) {
+ equal(xmlcontent.replace(/[\n\r\t ]/g, ""), content.replace(/[\n\r\t ]/g, ""), src);
+ var diff = diffString(xmlcontent, content);
print("DIFF FOUND:"+ xmlcontent.replace(/[\n\r\t ]/g, "").length + " vs. "+ content.replace(/[\n\r\t ]/g, "").length +"\n" + diff);
}
}
diff --git a/test/synckolab/parser/kolab3/xml/list.test1.eml.xml b/test/synckolab/parser/kolab3/xml/list.test1.eml.xml
index 464d2dd..3457c17 100644
--- a/test/synckolab/parser/kolab3/xml/list.test1.eml.xml
+++ b/test/synckolab/parser/kolab3/xml/list.test1.eml.xml
@@ -1,13 +1,11 @@
-<?xml version="1.0" encoding="UTF-8"?>
- <vcards xmlns="urn:ietf:params:xml:ns:vcard-4.0">
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<vcards xmlns="urn:ietf:params:xml:ns:vcard-4.0">
<vcard>
<uid><text>list_name</text></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>
- <kind>
- <text>group</text>
- </kind>
+ <rev><timestamp>20121017T224839ZZ</timestamp></rev>
+ <kind><text>group</text></kind>
<fn><text>list-name</text></fn>
<nickname><text>list-nickname</text></nickname>
<member>
@@ -22,4 +20,5 @@
</member>
<note><text>list-description</text></note>
</vcard>
-</vcards> \ No newline at end of file
+</vcards>
+