~ubuntu-branches/ubuntu/quantal/kdepim/quantal

« back to all changes in this revision

Viewing changes to templateparser/tests/templateparsertest.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:51 UTC
  • mto: This revision was merged to the branch mainline in revision 193.
  • Revision ID: package-import@ubuntu.com-20111215141751-bmhdpiwl23wd9w26
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright 2011 Sudhendu Kumar <sudhendu.kumar.roy@gmail.com>
 
2
 
 
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.
 
10
 
 
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.
 
15
 
 
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/>.
 
18
*/
 
19
#ifndef TEMPLATEPARSERTEST_H
 
20
#define TEMPLATEPARSERTEST_H
 
21
 
 
22
 
 
23
#include <QObject>
 
24
#include <KMime/Message>
 
25
 
 
26
class TemplateParserTester : public QObject
 
27
{
 
28
  Q_OBJECT
 
29
 
 
30
  private slots:
 
31
    /**
 
32
     * checks whether text/plain only mails are converted to a valid HTML
 
33
     */
 
34
    void test_convertedHtml();
 
35
    void test_convertedHtml_data();
 
36
 
 
37
    /**
 
38
     * checks whether body element is properly extracted from a valid HTML
 
39
     */
 
40
    void test_bodyFromHtml();
 
41
 
 
42
    /**
 
43
     * Tests whether templates are returning required body or not
 
44
     */
 
45
    void test_processWithTemplatesForBody();
 
46
    void test_processWithTemplatesForBody_data();
 
47
 
 
48
    void test_processWithTemplatesForContent();
 
49
    void test_processWithTemplatesForContent_data();
 
50
};
 
51
 
 
52
#endif