[poppler] poppler/qt4/tests: check_linearised.cpp, NONE, 1.1 Makefile.am, 1.3, 1.4

Brad Hards bradh at freedesktop.org
Wed Jul 6 04:15:18 PDT 2005


Update of /cvs/poppler/poppler/qt4/tests
In directory gabe:/tmp/cvs-serv20464/qt4/tests

Modified Files:
	Makefile.am 
Added Files:
	check_linearised.cpp 
Log Message:
Add unit tests for the isLinearized() property.


--- NEW FILE: check_linearised.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/orientation.pdf");
    if (!doc)
    {
	exit(1);
    }
  
    // It is supposed to be linearised
    if ( !(doc->isLinearized() ) )
    {
	exit(2);
    }

    exit(0);
}

Index: Makefile.am
===================================================================
RCS file: /cvs/poppler/poppler/qt4/tests/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- Makefile.am	5 Jul 2005 12:31:59 -0000	1.3
+++ Makefile.am	6 Jul 2005 11:15:16 -0000	1.4
@@ -34,7 +34,8 @@
 TESTS = \
 	check_author           \
 	check_orientation      \
-	check_permissions
+	check_permissions      \
+	check_linearised
 
 
 check_PROGRAMS = $(TESTS)
@@ -42,6 +43,9 @@
 check_orientation_SOURCES = check_orientation.cpp
 check_orientation_LDADD = $(LDADDS)
 
+check_linearised_SOURCES = check_linearised.cpp
+check_linearised_LDADD = $(LDADDS)
+
 check_author_SOURCES = check_author.cpp
 check_author_LDADD = $(LDADDS)
 



More information about the poppler mailing list