summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2011-03-30 00:03:58 +0100
committerAlbert Astals Cid <aacid@kde.org>2011-03-30 00:03:58 +0100
commit3dd934088a06f246718382601030c9b093d04160 (patch)
tree5db74209efe4d174bce903305bf394d503b4ec5b
parentce0d4278a32b3ba19c2002ed0c481c58b1854d59 (diff)
Need to create the globalParamspoppler-0.17.0
-rw-r--r--qt4/tests/check_optcontent.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qt4/tests/check_optcontent.cpp b/qt4/tests/check_optcontent.cpp
index ec988b8e..ffa0e033 100644
--- a/qt4/tests/check_optcontent.cpp
+++ b/qt4/tests/check_optcontent.cpp
@@ -1,6 +1,7 @@
#include <QtTest/QtTest>
#include "PDFDoc.h"
+#include "GlobalParams.h"
#include <poppler-qt4.h>
@@ -85,6 +86,7 @@ void TestOptionalContent::checkNoOptionalContent()
void TestOptionalContent::checkIsVisible()
{
GooString *fileName = new GooString("../../../test/unittestcases/vis_policy_test.pdf");
+ globalParams = new GlobalParams();
PDFDoc *doc = new PDFDoc( fileName );
QVERIFY( doc );
@@ -161,10 +163,12 @@ void TestOptionalContent::checkIsVisible()
obj.free();
delete doc;
+ delete globalParams;
}
void TestOptionalContent::checkVisibilitySetting()
{
+ globalParams = new GlobalParams();
GooString *fileName = new GooString("../../../test/unittestcases/vis_policy_test.pdf");
PDFDoc *doc = new PDFDoc( fileName );
QVERIFY( doc );
@@ -394,6 +398,7 @@ void TestOptionalContent::checkVisibilitySetting()
obj.free();
delete doc;
+ delete globalParams;
}
void TestOptionalContent::checkRadioButtons()