summaryrefslogtreecommitdiff
path: root/qt4/tests/check_optcontent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt4/tests/check_optcontent.cpp')
-rw-r--r--qt4/tests/check_optcontent.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/qt4/tests/check_optcontent.cpp b/qt4/tests/check_optcontent.cpp
index b59ec48f..22b14a45 100644
--- a/qt4/tests/check_optcontent.cpp
+++ b/qt4/tests/check_optcontent.cpp
@@ -20,7 +20,7 @@ private slots:
void TestOptionalContent::checkVisPolicy()
{
Poppler::Document *doc;
- doc = Poppler::Document::load("../../../test/unittestcases/vis_policy_test.pdf");
+ doc = Poppler::Document::load(TESTDATADIR "/unittestcases/vis_policy_test.pdf");
QVERIFY( doc );
QVERIFY( doc->hasOptionalContent() );
@@ -40,7 +40,7 @@ void TestOptionalContent::checkVisPolicy()
void TestOptionalContent::checkNestedLayers()
{
Poppler::Document *doc;
- doc = Poppler::Document::load("../../../test/unittestcases/NestedLayers.pdf");
+ doc = Poppler::Document::load(TESTDATADIR "/unittestcases/NestedLayers.pdf");
QVERIFY( doc );
QVERIFY( doc->hasOptionalContent() );
@@ -75,7 +75,7 @@ void TestOptionalContent::checkNestedLayers()
void TestOptionalContent::checkNoOptionalContent()
{
Poppler::Document *doc;
- doc = Poppler::Document::load("../../../test/unittestcases/orientation.pdf");
+ doc = Poppler::Document::load(TESTDATADIR "/unittestcases/orientation.pdf");
QVERIFY( doc );
QCOMPARE( doc->hasOptionalContent(), false );
@@ -85,7 +85,7 @@ void TestOptionalContent::checkNoOptionalContent()
void TestOptionalContent::checkIsVisible()
{
- GooString *fileName = new GooString("../../../test/unittestcases/vis_policy_test.pdf");
+ GooString *fileName = new GooString(TESTDATADIR "/unittestcases/vis_policy_test.pdf");
globalParams = new GlobalParams();
PDFDoc *doc = new PDFDoc( fileName );
QVERIFY( doc );
@@ -169,7 +169,7 @@ void TestOptionalContent::checkIsVisible()
void TestOptionalContent::checkVisibilitySetting()
{
globalParams = new GlobalParams();
- GooString *fileName = new GooString("../../../test/unittestcases/vis_policy_test.pdf");
+ GooString *fileName = new GooString(TESTDATADIR "/unittestcases/vis_policy_test.pdf");
PDFDoc *doc = new PDFDoc( fileName );
QVERIFY( doc );
@@ -404,7 +404,7 @@ void TestOptionalContent::checkVisibilitySetting()
void TestOptionalContent::checkRadioButtons()
{
Poppler::Document *doc;
- doc = Poppler::Document::load("../../../test/unittestcases/ClarityOCGs.pdf");
+ doc = Poppler::Document::load(TESTDATADIR "/unittestcases/ClarityOCGs.pdf");
QVERIFY( doc );
QVERIFY( doc->hasOptionalContent() );