Changeset 101
- Timestamp:
- 04/21/06 03:54:04 (2 years ago)
- Location:
- trunk/tests
- Files:
-
- 2 added
- 3 modified
-
DocumentOutlineTest.cxx (modified) (2 diffs)
-
Makefile.am (modified) (1 diff)
-
PDFDocumentTest.cxx (modified) (2 diffs)
-
Utils.cxx (added)
-
Utils.h (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/DocumentOutlineTest.cxx
r78 r101 17 17 18 18 #include <epdfview.h> 19 #include "Utils.h" 19 20 #include "DocumentOutlineTest.h" 20 21 … … 23 24 // Register the test suite into the `registry'. 24 25 CPPUNIT_TEST_SUITE_REGISTRATION (DocumentOutlineTest); 25 26 ///27 /// @brief Returns the path to the test data file.28 ///29 /// It assumes that TEST_DIR is defined to the relative30 /// tests directory and that the checks are executed from the31 /// test build dir.32 ///33 static gchar *34 getTestFile (const gchar *fileName)35 {36 gchar *currentDir = g_get_current_dir ();37 gchar *filePath = g_build_filename (currentDir, TEST_DIR, fileName, NULL);38 39 return filePath;40 }41 26 42 27 /// -
trunk/tests/Makefile.am
r92 r101 20 20 MainPterTest.h \ 21 21 PDFDocumentTest.cxx \ 22 PDFDocumentTest.h 22 PDFDocumentTest.h \ 23 Utils.cxx \ 24 Utils.h 23 25 24 26 test_epdfview_CXXFLAGS = \ -
trunk/tests/PDFDocumentTest.cxx
r91 r101 17 17 18 18 #include <epdfview.h> 19 #include "Utils.h" 19 20 #include "PDFDocumentTest.h" 20 21 … … 24 25 // Register the test suite into the `registry'. 25 26 CPPUNIT_TEST_SUITE_REGISTRATION (PDFDocumentTest); 26 27 ///28 /// @brief Returns the path to the test data file.29 ///30 /// It assumes that TEST_DIR is defined to the relative31 /// tests directory and that the checks are executed from the32 /// test build dir.33 ///34 static gchar *35 getTestFile (const gchar *fileName)36 {37 gchar *currentDir = g_get_current_dir ();38 gchar *filePath = g_build_filename (currentDir, TEST_DIR, fileName, NULL);39 g_free (currentDir);40 41 return filePath;42 }43 27 44 28 ///
