[poppler] poppler/qt4/tests: check_orientation.cpp,1.1,1.2

Brad Hards bradh at freedesktop.org
Mon Jul 4 00:42:35 PDT 2005


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

Modified Files:
	check_orientation.cpp 
Log Message:
Fix up the unit test, now that I have a real sample
file.


Index: check_orientation.cpp
===================================================================
RCS file: /cvs/poppler/poppler/qt4/tests/check_orientation.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- check_orientation.cpp	28 Jun 2005 10:00:09 -0000	1.1
+++ check_orientation.cpp	4 Jul 2005 07:42:32 -0000	1.2
@@ -17,22 +17,22 @@
     }
   
     Poppler::Page *page = doc->page(0);
-    if ( !( page->orientation() == Poppler::Page::Landscape ) ) {
+    if ( !( page->orientation() == Poppler::Page::Portrait ) ) {
 	exit(2);
     }
 
     page = doc->page(1);
-    if ( !( page->orientation() == Poppler::Page::Portrait ) ) {
+    if ( !( page->orientation() == Poppler::Page::Landscape ) ) {
 	exit(3);
     }
 
     page = doc->page(2);
-    if ( !( page->orientation() == Poppler::Page::Seascape ) ) {
+    if ( !( page->orientation() == Poppler::Page::UpsideDown) ) {
 	exit(4);
     }
 
     page = doc->page(3);
-    if ( !( page->orientation() == Poppler::Page::UpsideDown ) ) {
+    if ( !( page->orientation() == Poppler::Page::Seascape ) ) {
 	exit(5);
     }
 



More information about the poppler mailing list