diff options
Diffstat (limited to 'tests/auto/patternistexamples')
-rw-r--r-- | tests/auto/patternistexamples/patternistexamples.pro | 21 | ||||
-rw-r--r-- | tests/auto/patternistexamples/tst_patternistexamples.cpp | 9 |
2 files changed, 3 insertions, 27 deletions
diff --git a/tests/auto/patternistexamples/patternistexamples.pro b/tests/auto/patternistexamples/patternistexamples.pro index dfb8ba8..f415e30 100644 --- a/tests/auto/patternistexamples/patternistexamples.pro +++ b/tests/auto/patternistexamples/patternistexamples.pro @@ -2,24 +2,7 @@ TARGET = tst_patternistexamples CONFIG += testcase SOURCES += tst_patternistexamples.cpp QT += testlib -wince*: { - snippets.files = ../../../doc/src/snippets/patternist/* - snippets.path = patternist - widgetRen.files = ../../../examples/xquery/widgetRenderer/* - widgetRen.path = widgetRenderer - globVar.files = ../../../examples/xquery/globalVariables/* - globVar.path = globalVariables - filetree.files = ../../../examples/filetree/* - filetree.path = filetree - recipes.files = ../../../examples/recipes/* - recipes.path = recipes - files.files = ../../../examples/recipes/files/* - files.path = recipes\\files - DEPLOYMENT += snippets widgetRen globVar filetree recipes files - # take care of dependency - QT += network -} else { - DEFINES += SOURCETREE=\\\"$$absolute_path(../../..)/\\\" -} +DEFINES += SOURCETREE=\\\"$$absolute_path(../../..)/\\\" + include (../xmlpatterns.pri) diff --git a/tests/auto/patternistexamples/tst_patternistexamples.cpp b/tests/auto/patternistexamples/tst_patternistexamples.cpp index 7801e20..3aed232 100644 --- a/tests/auto/patternistexamples/tst_patternistexamples.cpp +++ b/tests/auto/patternistexamples/tst_patternistexamples.cpp @@ -68,19 +68,12 @@ private: void tst_PatternistExamples::initTestCase() { -#ifndef Q_OS_WINCE m_dirs.append(QDir(QLatin1String(SOURCETREE "src/xmlpatterns/doc/snippets/patternist/"))); m_dirs.append(QDir(QLatin1String(SOURCETREE "examples/xmlpatterns/xquery/globalVariables/"))); m_dirs.append(QDir(QLatin1String(SOURCETREE "examples/xmlpatterns/filetree/"))); m_dirs.append(QDir(QLatin1String(SOURCETREE "examples/xmlpatterns/recipes/"))); m_dirs.append(QDir(QLatin1String(SOURCETREE "examples/xmlpatterns/recipes/files/"))); -#else - m_dirs.append(QDir(QFINDTESTDATA("patternist/"))); - m_dirs.append(QDir(QFINDTESTDATA("globalVariables/"))); - m_dirs.append(QDir(QFINDTESTDATA("filetree/"))); - m_dirs.append(QDir(QFINDTESTDATA("recipes/"))); - m_dirs.append(QDir(QFINDTESTDATA("recipes/files/"))); -#endif + for(int i = 0; i < m_dirs.size(); ++i) QVERIFY(m_dirs.at(i).exists()); } |