Commit 6c858ce2 authored by Laurent Montel's avatar Laurent Montel 😁

Start to add more autotest

parent 300307f1
......@@ -190,6 +190,8 @@ void FormatTest::testContact_data()
//FIXME the following test fails because the vcard implementation always writes jpeg (which is lossy). The reference vcf file is therefore probably also not really useful
// QTest::newRow( "v2pictureJPGHorde" ) << Kolab::KolabV2 << Kolab::ContactObject << getPath("v2/contacts/pictureJPGHorde.vcf") << getPath("v2/contacts/pictureJPGHorde.vcf.mime");
QTest::newRow("v2contactRelated") << Kolab::KolabV2 << Kolab::ContactObject << getPath("v2/contacts/related.vcf") << getPath("v2/contacts/related.vcf.mime") << ReadWrite;
QTest::newRow("v3contactSimple") << Kolab::KolabV3 << Kolab::ContactObject << getPath("v3/contacts/simple.vcf") << getPath("v3/contacts/simple.vcf.mime") << ReadWrite;
QTest::newRow("v3contactComplex") << Kolab::KolabV3 << Kolab::ContactObject << getPath("v3/contacts/complex.vcf") << getPath("v3/contacts/complex.vcf.mime") << ReadWrite;
QTest::newRow("v3contactPng") << Kolab::KolabV3 << Kolab::ContactObject << getPath("v3/readonly/png.vcf") << getPath("v3/readonly/png.vcf.mime") << ReadOnly;
......
BEGIN:VCARD
VERSION:3.0
FN:Test Tester
N:Tester;Test;;;
RELATED;TYPE=child;VALUE=text:Child Tester
item1.URL:http://www.example.com
item1.X-ABLABEL:random_label
TEL;TYPE=home:+1-800-123456
UID:40f8971c-1d3a-466f-8cf5-55aad2021e1a
END:VCARD
Date: Tue, 01 Sep 2009 13:13:40 +0200
X-Kolab-Type: application/x-vnd.kolab.contact
User-Agent: Libkolab-3.0.0
Content-Type: multipart/mixed; boundary="nextPart2497845.VQRhqsHbKY"
Subject: zj77MLHTiw
From: Email Addresses <first@email.org>
MIME-Version: 1.0
--nextPart2497845.VQRhqsHbKY
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7Bit
This is a Kolab Groupware object.
To view this object you will need an email client that can understand the Kolab Groupware format.
For a list of such email clients please visit
http://www.kolab.org/get-kolab
--nextPart2497845.VQRhqsHbKY
Content-Type: application/x-vnd.kolab.contact; name="kolab.xml"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="kolab.xml"
<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<contact version=3D"1.0">
<product-id>KAddressBook 3.3, Kolab resource</product-id>
<uid>zj77MLHTiw</uid>
<last-modification-date>dummydate</last-modification-date>
<sensitivity>public</sensitivity>
<name>
<given-name>Email</given-name>
<last-name>Addresses</last-name>
<full-name>Email Addresses</full-name>
</name>
<email>
<display-name>Email Addresses</display-name>
<smtp-address>first@email.org</smtp-address>
</email>
<email>
<display-name>Email Addresses</display-name>
<smtp-address>second@email.org</smtp-address>
</email>
<email>
<display-name>Email Addresses</display-name>
<smtp-address>third@email.org</smtp-address>
</email>
<preferred-address>home</preferred-address>
</contact>
--nextPart2497845.VQRhqsHbKY--
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment