root/trunk/tests/MainPterTest.h

Revision 210, 3.1 kB (checked in by jordi, 2 years ago)

Added test for checking the save a document functionality.

Line 
1 // ePDFView - Main Presenter Test Fixture.
2 // Copyright (C) 2006 Emma's Software.
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
18 #if !defined (__MAIN_PTER_TEST_H__)
19 #define __MAIN_PTER_TEST_H__
20
21 #include <cppunit/extensions/HelperMacros.h>
22
23 namespace ePDFView
24 {
25     class MainPterTest: public CppUnit::TestFixture
26     {
27         CPPUNIT_TEST_SUITE (MainPterTest);
28         CPPUNIT_TEST (initialStatus);
29         CPPUNIT_TEST (loadDocument);
30         CPPUNIT_TEST (loadCanceled);
31         CPPUNIT_TEST (loadFailed);
32         CPPUNIT_TEST (canceledPassword);
33         CPPUNIT_TEST (badPassword);
34         CPPUNIT_TEST (goodPassword);
35         CPPUNIT_TEST (openLastFolder);
36         CPPUNIT_TEST (saveDocument);
37         CPPUNIT_TEST (saveCanceled);
38         CPPUNIT_TEST (saveLastFolder);
39         CPPUNIT_TEST (pageNavigation);
40         CPPUNIT_TEST (pageNavigationEntry);
41         CPPUNIT_TEST (pageRotate);
42         CPPUNIT_TEST (pageZoomInAndOut);
43         CPPUNIT_TEST (pageZoomWidth);
44         CPPUNIT_TEST (pageZoomFit);
45         CPPUNIT_TEST (pageZoomAndRotate);
46         CPPUNIT_TEST (pageZoomIndicator);
47         CPPUNIT_TEST (reloadNormal);
48         CPPUNIT_TEST (reloadEncrypted);
49         CPPUNIT_TEST (reloadChangedPassword);
50         CPPUNIT_TEST (showIndex);
51         CPPUNIT_TEST (showToolAndStatusBars);
52         CPPUNIT_TEST_SUITE_END();
53
54         public:
55             void setUp (void);
56             void tearDown (void);
57
58             void initialStatus (void);
59             void loadDocument (void);
60             void loadCanceled (void);
61             void loadFailed (void);
62             void canceledPassword (void);
63             void badPassword (void);
64             void goodPassword (void);
65             void openLastFolder (void);
66             void saveDocument (void);
67             void saveCanceled (void);
68             void saveLastFolder (void);
69             void pageNavigation (void);
70             void pageNavigationEntry (void);
71             void pageRotate (void);
72             void pageZoomInAndOut (void);
73             void pageZoomWidth (void);
74             void pageZoomFit (void);
75             void pageZoomAndRotate (void);
76             void pageZoomIndicator (void);
77             void reloadNormal (void);
78             void reloadEncrypted (void);
79             void reloadChangedPassword (void);
80             void showIndex (void);
81             void showToolAndStatusBars (void);
82
83         private:
84             DumbMainView *m_View;
85             DumbDocument *m_Document;
86             MainPter *m_MainPter;
87     };
88 }
89
90 #endif // !__MAIN_PTER_TEST_H__
Note: See TracBrowser for help on using the browser.