summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2021-04-02 00:21:34 +0200
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2021-07-01 09:53:47 +0900
commit6546856703cf1cec4493e8c357fa89fa7f53f8ca (patch)
treeeea9321a67d405c1d042f67ffa9c431f0a9fa723
parentf02d56dca274961ad9ecc6b1eaeb2acc4dea25b3 (diff)
Unit test (with the content disabled so far) for the theming.
Change-Id: Ie9e003df38e1bc766fb5323936138d3e0e664321
-rw-r--r--sw/qa/extras/ooxmlexport/data/themeOrange.docxbin0 -> 12352 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport16.cxx6
2 files changed, 6 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/themeOrange.docx b/sw/qa/extras/ooxmlexport/data/themeOrange.docx
new file mode 100644
index 000000000000..e350c2676d41
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/themeOrange.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
index bafe3b511730..f29b156d171e 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
@@ -587,6 +587,12 @@ DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(Test_ShadowDirection, "tdf142361ShadowDirect
"rotWithShape", "0");
}
+DECLARE_OOXMLEXPORT_TEST(testThemeOrange, "themeOrange.docx")
+{
+ // Assert that the theme color of the 1st paragraph is "accent1"
+ //CPPUNIT_ASSERT_EQUAL(getProperty<sal_Int16>(getParagraph(1), "CharColorTheme"), static_cast<sal_Int16>(4));
+}
+
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */