summaryrefslogtreecommitdiff
path: root/starmath/CppunitTest_starmath_qa_cppunit.mk
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2019-07-13 20:56:27 +1000
committerTomaž Vajngerl <quikee@gmail.com>2019-09-16 11:13:46 +0200
commit78d225f51404d1a98795541bc9c84f7405502411 (patch)
treedf565f5fe47e78c2f454c9e4247bc423ee596d26 /starmath/CppunitTest_starmath_qa_cppunit.mk
parente17c5e1247943300f333c8f0a0f34cebc10738d4 (diff)
tdf#74702: remove GetOutDevType() from SmTmpDevice
Adds in logic to OutputDevice that takes a font color and the font's background color - if the font and background is dark then return the stock white color, if the font and background are bright, then return the stock black color, otherwise just return the font color. Also added a unit test to ensure that SmTmpDevice restores font and test color correctly. Change-Id: Id805682778d82826c644e7a27017c8d30b1ff5eb Reviewed-on: https://gerrit.libreoffice.org/75524 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'starmath/CppunitTest_starmath_qa_cppunit.mk')
-rw-r--r--starmath/CppunitTest_starmath_qa_cppunit.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/starmath/CppunitTest_starmath_qa_cppunit.mk b/starmath/CppunitTest_starmath_qa_cppunit.mk
index 19beb8c3eebd..ee436749f95a 100644
--- a/starmath/CppunitTest_starmath_qa_cppunit.mk
+++ b/starmath/CppunitTest_starmath_qa_cppunit.mk
@@ -48,6 +48,11 @@ $(eval $(call gb_CppunitTest_use_libraries,starmath_qa_cppunit,\
xo \
))
+$(eval $(call gb_CppunitTest_set_include,starmath_qa_cppunit,\
+ -I$(SRCDIR)/starmath/source \
+ $$(INCLUDE) \
+))
+
$(eval $(call gb_CppunitTest_add_exception_objects,starmath_qa_cppunit,\
starmath/qa/cppunit/test_cursor \
starmath/qa/cppunit/test_node \