1
/* Copyright 2011 Sudhendu Kumar <sudhendu.kumar.roy@gmail.com>
3
This program is free software; you can redistribute it and/or
4
modify it under the terms of the GNU General Public License as
5
published by the Free Software Foundation; either version 2 of
6
the License or (at your option) version 3 or any later version
7
accepted by the membership of KDE e.V. (or its successor approved
8
by the membership of KDE e.V.), which shall act as a proxy
9
defined in Section 14 of version 3 of the license.
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
16
You should have received a copy of the GNU General Public License
17
along with this program. If not, see <http://www.gnu.org/licenses/>.
19
#ifndef TEMPLATEPARSERTEST_H
20
#define TEMPLATEPARSERTEST_H
24
#include <KMime/Message>
26
class TemplateParserTester : public QObject
32
* checks whether text/plain only mails are converted to a valid HTML
34
void test_convertedHtml();
35
void test_convertedHtml_data();
38
* checks whether body element is properly extracted from a valid HTML
40
void test_bodyFromHtml();
43
* Tests whether templates are returning required body or not
45
void test_processWithTemplatesForBody();
46
void test_processWithTemplatesForBody_data();
48
void test_processWithTemplatesForContent();
49
void test_processWithTemplatesForContent_data();