summaryrefslogtreecommitdiff
path: root/test/synckolab/parser/kolab3
diff options
context:
space:
mode:
authorniko <niko>2012-10-27 10:42:30 (GMT)
committerniko <niko>2012-10-27 10:42:30 (GMT)
commit2488e92374f346a70fddc976959d2ded56e7c309 (patch)
treef07fae002ef39ea09e7d77ba62a48faae5426b66 /test/synckolab/parser/kolab3
parentc30b6d0c8837a947ce6f817e147c32b083c09754 (diff)
downloadsynckolab-2488e92374f346a70fddc976959d2ded56e7c309.tar.gz
added kolab2 task tests
Diffstat (limited to 'test/synckolab/parser/kolab3')
-rw-r--r--test/synckolab/parser/kolab3/contactTest.js2
-rw-r--r--test/synckolab/parser/kolab3/raw/contact.test2.mime1
-rw-r--r--test/synckolab/parser/kolab3/raw/list.test1.eml5
3 files changed, 6 insertions, 2 deletions
diff --git a/test/synckolab/parser/kolab3/contactTest.js b/test/synckolab/parser/kolab3/contactTest.js
index b24dc69..7de01dc 100644
--- a/test/synckolab/parser/kolab3/contactTest.js
+++ b/test/synckolab/parser/kolab3/contactTest.js
@@ -40,6 +40,8 @@ test("kolab3 synckolab.addressbookTools.parseMessageContent", function(){
equal(xmlcontent.replace(/[\n\r\t ]/g, ""), content.replace(/[\n\r\t ]/g, ""), src);
var diff = diffString(xmlcontent, content);
print("ERROR: DIFF FOUND:"+ xmlcontent.replace(/[\n\r\t ]/g, "").length + " vs. "+ content.replace(/[\n\r\t ]/g, "").length +"\n" + diff);
+ } else {
+ ok(src);
}
}
});
diff --git a/test/synckolab/parser/kolab3/raw/contact.test2.mime b/test/synckolab/parser/kolab3/raw/contact.test2.mime
index 04bcc40..cd3f375 100644
--- a/test/synckolab/parser/kolab3/raw/contact.test2.mime
+++ b/test/synckolab/parser/kolab3/raw/contact.test2.mime
@@ -3,6 +3,7 @@ Content-Type: text/plain; charset="US-ASCII"
From: grote2@demo.kolab.org
To: grote2@demo.kolab.org
Date: Mon, 08 Oct 2012 15:13:16 +0200
+Content-Type: Multipart/Mixed;boundary="=_fa2884819e665b9976ebbf6fea3ebc10"
X-Kolab-Type: application/x-vnd.kolab.contact
X-Kolab-Mime-Version: 3.0
Subject: ebf6fdc2-1149-11e2-841b-000476ed9009
diff --git a/test/synckolab/parser/kolab3/raw/list.test1.eml b/test/synckolab/parser/kolab3/raw/list.test1.eml
index f2171cb..caa71ed 100644
--- a/test/synckolab/parser/kolab3/raw/list.test1.eml
+++ b/test/synckolab/parser/kolab3/raw/list.test1.eml
@@ -1,10 +1,11 @@
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
-From: grote2@demo.kolab.org
-To: grote2@demo.kolab.org
+From: email@demo.kolab.org
+To: email@demo.kolab.org
Date: Mon, 08 Oct 2012 15:13:16 +0200
X-Kolab-Type: application/x-vnd.kolab.contact
X-Kolab-Mime-Version: 3.0
+Content-Type: Multipart/Mixed;boundary="=_fa2884819e665b9976ebbf6fea3ebc10"
Subject: ebf6fdc2-1149-11e2-841b-000476ed9009
User-Agent: Roundcube Webmail/0.9-0.10.git954540a3.el6.kolab_3.0