Skip to content

Add a roundtrip consistency test for the text color properties of annotations.

This tries to create a simple consistency test for setting an annotations text color by roundtripping the property through a temporary file.

I have probably messed up the test implementation somehow since this currently fails (even though the contents is reproduced):

> ./qt5/tests/check_qt5_annotations
********* Start testing of TestAnnotations *********
Config: Using QtTest library 5.11.1, Qt 5.11.1 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 8.1.1 20180719 [gcc-8-branch revision 262874])
PASS   : TestAnnotations::initTestCase()
FAIL!  : TestAnnotations::checkFontColor() Compared values are not the same
   Actual   (textColor)         : #ffabcdef
   Expected (annot->textColor()): #ffffffff
   Loc: [/home/adam/Projekte/poppler/qt5/tests/check_annotations.cpp(75)]
PASS   : TestAnnotations::cleanupTestCase()
Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 10ms
********* Finished testing of TestAnnotations *********

Merge request reports