summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Richardson <arichardson.kde@gmail.com>2015-11-28 15:19:35 (GMT)
committerAlex Richardson <arichardson.kde@gmail.com>2015-11-28 16:04:57 (GMT)
commit5c566b35430fc33b21c3cdaf11e67870a0b107e9 (patch)
tree27ea86356f2ea9c2fa45552fdaf758a8e16aba45
parentab1d3a36cce914e8a831cc702d4eda84ec014f99 (diff)
Fix crash in parttest by failing the test if the file couldn't be opened
-rw-r--r--autotests/parttest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/autotests/parttest.cpp b/autotests/parttest.cpp
index 33042be..38c1753 100644
--- a/autotests/parttest.cpp
+++ b/autotests/parttest.cpp
@@ -179,7 +179,7 @@ void PartTest::testSelectText()
{
QVariantList dummyArgs;
Okular::Part part(NULL, NULL, dummyArgs);
- part.openDocument(KDESRCDIR "data/file2.pdf");
+ QVERIFY(openDocument(&part, KDESRCDIR "data/file2.pdf"));
part.widget()->show();
QTest::qWaitForWindowShown(part.widget());
@@ -209,7 +209,7 @@ void PartTest::testClickInternalLink()
{
QVariantList dummyArgs;
Okular::Part part(NULL, NULL, dummyArgs);
- part.openDocument(KDESRCDIR "data/file2.pdf");
+ QVERIFY(openDocument(&part, KDESRCDIR "data/file2.pdf"));
part.widget()->show();
QTest::qWaitForWindowShown(part.widget());