summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2013-02-19 18:09:09 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2013-02-19 18:09:09 (GMT)
commit6f0c7d0f32079eb9f3d027e874b3d60523adf347 (patch)
tree657f0c6528288bd983aa57b003bbe4a0e6b89209 /tests
parent193d0001d6baa75093c78eadecc0c1ba6a27d646 (diff)
downloadlibkolab-6f0c7d0f32079eb9f3d027e874b3d60523adf347.tar.gz
Avoid encoding issues which causes tests to fail.
Diffstat (limited to 'tests')
-rw-r--r--tests/testutils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/testutils.h b/tests/testutils.h
index e7a71e1..2e2bb46 100644
--- a/tests/testutils.h
+++ b/tests/testutils.h
@@ -95,6 +95,9 @@ void normalizeMimemessage(QString &content)
content.replace(QRegExp("\\bLibkolab-\\d.\\d\\b", Qt::CaseSensitive), "Libkolab-x.x.x");
content.replace(QRegExp("\\bLibkolabxml-\\d.\\d\\b", Qt::CaseSensitive), "Libkolabxml-x.x.x");
content.replace(QRegExp("<uri>cid:*@kolab.resource.akonadi</uri>", Qt::CaseSensitive, QRegExp::Wildcard), "<uri>cid:id@kolab.resource.akonadi</uri>");
+ content.replace(QRegExp("<uri>mailto:*</uri>", Qt::CaseSensitive, QRegExp::Wildcard), "<uri>mailto:</uri>");
+ content.replace(QRegExp("<cal-address>mailto:*</cal-address>", Qt::CaseSensitive, QRegExp::Wildcard), "<cal-address>mailto:</cal-address>");
+ content.replace(QRegExp("<uri>data:*</uri>", Qt::CaseSensitive, QRegExp::Wildcard), "<uri>data:</uri>");
content.replace(QRegExp("<last-modification-date>*</last-modification-date>", Qt::CaseSensitive, QRegExp::Wildcard), "<last-modification-date></last-modification-date>");
content.replace(QRegExp("<timestamp>*</timestamp>", Qt::CaseSensitive, QRegExp::Wildcard), "<timestamp></timestamp>");