diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2020-08-31 07:53:55 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2020-09-06 14:00:47 +0200 |
commit | 962f1bb95fc38cafe56ea2ba134ce19392102601 (patch) | |
tree | 47c9f721807dd03585c0f7130ae7f6b24bd774e2 /vcl/qa/cppunit/PDFiumLibraryTest.cxx | |
parent | 11292d1cc405e7c3b9e1f374cc7581a63a54b994 (diff) |
store annotation subtype in PDFGraphicAnnotation, enum for subtype
Change-Id: Ib804f497a6c8f609e4899f9ebcef4c1096f44ce0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102090
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/qa/cppunit/PDFiumLibraryTest.cxx')
-rw-r--r-- | vcl/qa/cppunit/PDFiumLibraryTest.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/vcl/qa/cppunit/PDFiumLibraryTest.cxx b/vcl/qa/cppunit/PDFiumLibraryTest.cxx index 43d6b92bae27..7e60ab92ec2a 100644 --- a/vcl/qa/cppunit/PDFiumLibraryTest.cxx +++ b/vcl/qa/cppunit/PDFiumLibraryTest.cxx @@ -184,7 +184,7 @@ void PDFiumLibraryTest::testAnnotationsMadeInEvince() { auto pAnnotation = pPage->getAnnotation(0); CPPUNIT_ASSERT(pAnnotation); - CPPUNIT_ASSERT_EQUAL(1, pAnnotation->getSubType()); // FPDF_ANNOT_TEXT + CPPUNIT_ASSERT_EQUAL(vcl::pdf::PDFAnnotationSubType::Text, pAnnotation->getSubType()); OUString aPopupString = pAnnotation->getString(vcl::pdf::constDictionaryKeyTitle); CPPUNIT_ASSERT_EQUAL(OUString("quikee"), aPopupString); @@ -197,7 +197,7 @@ void PDFiumLibraryTest::testAnnotationsMadeInEvince() CPPUNIT_ASSERT(pPopupAnnotation); CPPUNIT_ASSERT_EQUAL(1, pPage->getAnnotationIndex(pPopupAnnotation)); - CPPUNIT_ASSERT_EQUAL(16, pPopupAnnotation->getSubType()); + CPPUNIT_ASSERT_EQUAL(vcl::pdf::PDFAnnotationSubType::Popup, pPopupAnnotation->getSubType()); OUString sDateTimeString = pAnnotation->getString(vcl::pdf::constDictionaryKeyModificationDate); @@ -207,7 +207,7 @@ void PDFiumLibraryTest::testAnnotationsMadeInEvince() { auto pAnnotation = pPage->getAnnotation(1); CPPUNIT_ASSERT(pAnnotation); - CPPUNIT_ASSERT_EQUAL(16, pAnnotation->getSubType()); // FPDF_ANNOT_POPUP + CPPUNIT_ASSERT_EQUAL(vcl::pdf::PDFAnnotationSubType::Popup, pAnnotation->getSubType()); } } @@ -241,7 +241,7 @@ void PDFiumLibraryTest::testAnnotationsMadeInAcrobat() { auto pAnnotation = pPage->getAnnotation(0); CPPUNIT_ASSERT(pAnnotation); - CPPUNIT_ASSERT_EQUAL(1, pAnnotation->getSubType()); // FPDF_ANNOT_TEXT + CPPUNIT_ASSERT_EQUAL(vcl::pdf::PDFAnnotationSubType::Text, pAnnotation->getSubType()); OUString aPopupString = pAnnotation->getString(vcl::pdf::constDictionaryKeyTitle); CPPUNIT_ASSERT_EQUAL(OUString("quikee"), aPopupString); @@ -254,19 +254,19 @@ void PDFiumLibraryTest::testAnnotationsMadeInAcrobat() CPPUNIT_ASSERT(pPopupAnnotation); CPPUNIT_ASSERT_EQUAL(1, pPage->getAnnotationIndex(pPopupAnnotation)); - CPPUNIT_ASSERT_EQUAL(16, pPopupAnnotation->getSubType()); + CPPUNIT_ASSERT_EQUAL(vcl::pdf::PDFAnnotationSubType::Popup, pPopupAnnotation->getSubType()); } { auto pAnnotation = pPage->getAnnotation(1); CPPUNIT_ASSERT(pAnnotation); - CPPUNIT_ASSERT_EQUAL(16, pAnnotation->getSubType()); // FPDF_ANNOT_POPUP + CPPUNIT_ASSERT_EQUAL(vcl::pdf::PDFAnnotationSubType::Popup, pAnnotation->getSubType()); } { auto pAnnotation = pPage->getAnnotation(2); CPPUNIT_ASSERT(pAnnotation); - CPPUNIT_ASSERT_EQUAL(1, pAnnotation->getSubType()); // FPDF_ANNOT_TEXT + CPPUNIT_ASSERT_EQUAL(vcl::pdf::PDFAnnotationSubType::Text, pAnnotation->getSubType()); OUString aPopupString = pAnnotation->getString(vcl::pdf::constDictionaryKeyTitle); CPPUNIT_ASSERT_EQUAL(OUString("quikee"), aPopupString); @@ -279,13 +279,13 @@ void PDFiumLibraryTest::testAnnotationsMadeInAcrobat() CPPUNIT_ASSERT(pPopupAnnotation); CPPUNIT_ASSERT_EQUAL(3, pPage->getAnnotationIndex(pPopupAnnotation)); - CPPUNIT_ASSERT_EQUAL(16, pPopupAnnotation->getSubType()); + CPPUNIT_ASSERT_EQUAL(vcl::pdf::PDFAnnotationSubType::Popup, pPopupAnnotation->getSubType()); } { auto pAnnotation = pPage->getAnnotation(3); CPPUNIT_ASSERT(pAnnotation); - CPPUNIT_ASSERT_EQUAL(16, pAnnotation->getSubType()); // FPDF_ANNOT_POPUP + CPPUNIT_ASSERT_EQUAL(vcl::pdf::PDFAnnotationSubType::Popup, pAnnotation->getSubType()); } } |