Commit 1303020b authored by Brad Hards's avatar Brad Hards
Browse files

Fix up the unit test, now that I have a real sample

file.
parent 96fc0ea3
......@@ -17,22 +17,22 @@ int main( int argc, char **argv )
}
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);
}
......
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