Commit 8567b794 authored by Brad Hards's avatar Brad Hards

Add some more test cases.

parent 59d660cf
2005-07-29 Brad Hards <bradh@frogmouth.net>
* qt4/tests: add test cases for version and facing pagelayout.
Also updated .cvsignore for these and a couple of older files.
* poppler/ArthurOutputDev.cc (startPage): Make sure page is
filled white. Earlier versions of Qt4 seemed to have an
eggshell coloured background, but it changed to black at
some point.
* poppler/ArthurOutputDev.cc: remove a couple more TODOs,
based on current Qt4 working OK.
......
......@@ -11,8 +11,12 @@ check_orientation
check_author
check_permissions
check_linearised
check_pagelayout_facing
check_pagelayout_none
check_pagelayout_single
check_pagemode_attach
check_pagemode_fullscreen
check_pagemode_none
check_pagemode_oc
check_pagemode_thumbs
check_version
......@@ -42,7 +42,9 @@ TESTS = \
check_pagemode_thumbs \
check_pagemode_oc \
check_pagelayout_none \
check_pagelayout_single
check_pagelayout_single \
check_pagelayout_facing \
check_version
check_PROGRAMS = $(TESTS)
......@@ -79,3 +81,9 @@ check_pagelayout_single_LDADD = $(LDADDS)
check_pagelayout_none_SOURCES = check_pagelayout_none.cpp
check_pagelayout_none_LDADD = $(LDADDS)
check_pagelayout_facing_SOURCES = check_pagelayout_facing.cpp
check_pagelayout_facing_LDADD = $(LDADDS)
check_version_SOURCES = check_version.cpp
check_version_LDADD = $(LDADDS)
#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/doublepage.pdf");
if (!doc)
{
exit(1);
}
if ( !(doc->pageLayout() == Poppler::Document::TwoPageRight ) )
{
exit(2);
}
exit(0);
}
#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/doublepage.pdf");
if (!doc)
{
exit(1);
}
if ( !(doc->pdfVersion() == 1.6 ) )
{
exit(1);
}
exit(0);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment