[poppler] poppler/qt4/tests: Makefile.am, 1.4,
1.5 check_pagemode_attach.cpp, NONE,
1.1 check_pagemode_fullscreen.cpp, NONE,
1.1 check_pagemode_none.cpp, NONE, 1.1 check_pagemode_oc.cpp,
NONE, 1.1 check_pagemode_thumbs.cpp, NONE, 1.1
Brad Hards
bradh at freedesktop.org
Thu Jul 7 04:04:11 PDT 2005
Update of /cvs/poppler/poppler/qt4/tests
In directory gabe:/tmp/cvs-serv5161/qt4/tests
Modified Files:
Makefile.am
Added Files:
check_pagemode_attach.cpp check_pagemode_fullscreen.cpp
check_pagemode_none.cpp check_pagemode_oc.cpp
check_pagemode_thumbs.cpp
Log Message:
Update for page mode - new mode from PDF-1.6, API docs fixes
and some tests.
Index: Makefile.am
===================================================================
RCS file: /cvs/poppler/poppler/qt4/tests/Makefile.am,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- Makefile.am 6 Jul 2005 11:15:16 -0000 1.4
+++ Makefile.am 7 Jul 2005 11:04:08 -0000 1.5
@@ -35,7 +35,12 @@
check_author \
check_orientation \
check_permissions \
- check_linearised
+ check_linearised \
+ check_pagemode_fullscreen \
+ check_pagemode_attach \
+ check_pagemode_none \
+ check_pagemode_thumbs \
+ check_pagemode_oc
check_PROGRAMS = $(TESTS)
@@ -51,3 +56,18 @@
check_permissions_SOURCES = check_permissions.cpp
check_permissions_LDADD = $(LDADDS)
+
+check_pagemode_fullscreen_SOURCES = check_pagemode_fullscreen.cpp
+check_pagemode_fullscreen_LDADD = $(LDADDS)
+
+check_pagemode_attach_SOURCES = check_pagemode_attach.cpp
+check_pagemode_attach_LDADD = $(LDADDS)
+
+check_pagemode_none_SOURCES = check_pagemode_none.cpp
+check_pagemode_none_LDADD = $(LDADDS)
+
+check_pagemode_thumbs_SOURCES = check_pagemode_thumbs.cpp
+check_pagemode_thumbs_LDADD = $(LDADDS)
+
+check_pagemode_oc_SOURCES = check_pagemode_oc.cpp
+check_pagemode_oc_LDADD = $(LDADDS)
--- NEW FILE: check_pagemode_attach.cpp ---
#include <QtCore/QtCore>
#define UNSTABLE_POPPLER_QT4
#include <poppler-qt4.h>
int main( int argc, char **argv )
{
QCoreApplication a( argc, argv ); // QApplication required!
Poppler::Document *doc = Poppler::Document::load("../../../test/unittestcases/UseAttachments.pdf");
if (!doc)
{
exit(1);
}
if ( !(doc->pageMode() == Poppler::Document::UseAttach ) )
{
exit(1);
}
exit(0);
}
--- NEW FILE: check_pagemode_fullscreen.cpp ---
#include <QtCore/QtCore>
#define UNSTABLE_POPPLER_QT4
#include <poppler-qt4.h>
int main( int argc, char **argv )
{
QCoreApplication a( argc, argv ); // QApplication required!
Poppler::Document *doc = Poppler::Document::load("../../../test/unittestcases/FullScreen.pdf");
if (!doc)
{
exit(1);
}
if ( !(doc->pageMode() == Poppler::Document::FullScreen ) )
{
exit(1);
}
exit(0);
}
--- NEW FILE: check_pagemode_none.cpp ---
#include <QtCore/QtCore>
#define UNSTABLE_POPPLER_QT4
#include <poppler-qt4.h>
int main( int argc, char **argv )
{
QCoreApplication a( argc, argv ); // QApplication required!
Poppler::Document *doc = Poppler::Document::load("../../../test/unittestcases/UseNone.pdf");
if (!doc)
{
exit(1);
}
if ( !(doc->pageMode() == Poppler::Document::UseNone ) )
{
exit(1);
}
exit(0);
}
--- NEW FILE: check_pagemode_oc.cpp ---
#include <QtCore/QtCore>
#define UNSTABLE_POPPLER_QT4
#include <poppler-qt4.h>
int main( int argc, char **argv )
{
QCoreApplication a( argc, argv ); // QApplication required!
Poppler::Document *doc = Poppler::Document::load("../../../test/unittestcases/UseOC.pdf");
if (!doc)
{
exit(1);
}
if ( !(doc->pageMode() == Poppler::Document::UseOC ) )
{
exit(1);
}
exit(0);
}
--- NEW FILE: check_pagemode_thumbs.cpp ---
#include <QtCore/QtCore>
#define UNSTABLE_POPPLER_QT4
#include <poppler-qt4.h>
int main( int argc, char **argv )
{
QCoreApplication a( argc, argv ); // QApplication required!
Poppler::Document *doc = Poppler::Document::load("../../../test/unittestcases/UseThumbs.pdf");
if (!doc)
{
exit(1);
}
if ( !(doc->pageMode() == Poppler::Document::UseThumbs ) )
{
exit(1);
}
exit(0);
}
More information about the poppler
mailing list