root/trunk/tests/FindPterTest.h

Revision 157, 1.6 kB (checked in by jordi, 2 years ago)

The FindPter? now can also search backwards.

Line 
1 // ePDFView - Find 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 (__FIND_PTER_TEST_H__)
19 #define __FIND_PTER_TEST_H__
20
21 #include <cppunit/extensions/HelperMacros.h>
22
23 namespace ePDFView
24 {
25     class FindPterTest: public CppUnit::TestFixture
26     {
27         CPPUNIT_TEST_SUITE (FindPterTest);
28         CPPUNIT_TEST (viewSensitivity);
29         CPPUNIT_TEST (textDoesNotExist);
30         CPPUNIT_TEST (findNext);
31         CPPUNIT_TEST (findPrevious);
32         CPPUNIT_TEST_SUITE_END ();
33
34         public:
35             void setUp (void);
36             void tearDown (void);
37
38             void viewSensitivity (void);
39             void textDoesNotExist (void);
40             void findNext (void);
41             void findPrevious (void);
42
43         private:
44             PDFDocument *m_Document;
45             FindPter *m_FindPter;
46             DumbDocumentObserver *m_Observer;
47             DumbFindView *m_View;
48     };
49 }
50
51 #endif // !__FIND_PTER_TEST_H__
Note: See TracBrowser for help on using the browser.