[poppler] poppler/qt4/tests: Makefile.am, 1.5,
1.6 check_pagelayout_none.cpp, NONE,
1.1 check_pagelayout_single.cpp, NONE, 1.1
Brad Hards
bradh at freedesktop.org
Fri Jul 8 07:15:14 EST 2005
Update of /cvs/poppler/poppler/qt4/tests
In directory gabe:/tmp/cvs-serv17780/qt4/tests
Modified Files:
Makefile.am
Added Files:
check_pagelayout_none.cpp check_pagelayout_single.cpp
Log Message:
Add support for page layout to the Qt4 bindings, plus
test cases.
Index: Makefile.am
===================================================================
RCS file: /cvs/poppler/poppler/qt4/tests/Makefile.am,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- Makefile.am 7 Jul 2005 11:04:08 -0000 1.5
+++ Makefile.am 7 Jul 2005 21:15:09 -0000 1.6
@@ -40,7 +40,9 @@
check_pagemode_attach \
check_pagemode_none \
check_pagemode_thumbs \
- check_pagemode_oc
+ check_pagemode_oc \
+ check_pagelayout_none \
+ check_pagelayout_single
check_PROGRAMS = $(TESTS)
@@ -71,3 +73,9 @@
check_pagemode_oc_SOURCES = check_pagemode_oc.cpp
check_pagemode_oc_LDADD = $(LDADDS)
+
+check_pagelayout_single_SOURCES = check_pagelayout_single.cpp
+check_pagelayout_single_LDADD = $(LDADDS)
+
+check_pagelayout_none_SOURCES = check_pagelayout_none.cpp
+check_pagelayout_none_LDADD = $(LDADDS)
--- NEW FILE: check_pagelayout_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->pageLayout() == Poppler::Document::NoLayout ) )
{
exit(1);
}
exit(0);
}
--- NEW FILE: check_pagelayout_single.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->pageLayout() == Poppler::Document::SinglePage ) )
{
exit(1);
}
exit(0);
}
More information about the poppler
mailing list