summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@nokia.com>2009-12-30 13:38:59 (GMT)
committerPierre Rossi <pierre.rossi@nokia.com>2009-12-30 13:45:53 (GMT)
commit51c4571caf5d5ffb2545106df47d7c399b3e228b (patch)
tree0e20309cd913f8085c4323c89698baa5d4338fb9 /tests
parentf953b7c40c28a5728125ba72b091d8b384e8858a (diff)
downloadQt-51c4571caf5d5ffb2545106df47d7c399b3e228b.zip
Qt-51c4571caf5d5ffb2545106df47d7c399b3e228b.tar.gz
Qt-51c4571caf5d5ffb2545106df47d7c399b3e228b.tar.bz2
Fix background brush for character format when writing to ODF document.
Task-number: QTBUG-7047 Reviewed-by: Benjamin Poulain
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qtextodfwriter/tst_qtextodfwriter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qtextodfwriter/tst_qtextodfwriter.cpp b/tests/auto/qtextodfwriter/tst_qtextodfwriter.cpp
index cfcbcfb..a61de99 100644
--- a/tests/auto/qtextodfwriter/tst_qtextodfwriter.cpp
+++ b/tests/auto/qtextodfwriter/tst_qtextodfwriter.cpp
@@ -175,6 +175,10 @@ void tst_QTextOdfWriter::testWriteStyle1_data()
"<style:style style:name=\"c4\" style:family=\"text\"><style:text-properties fo:font-style=\"italic\" fo:font-family=\"Sans\"/></style:style>";
QTest::newRow("bold+italic") << text1 << 25 <<
"<style:style style:name=\"c4\" style:family=\"text\"><style:text-properties fo:font-style=\"italic\" fo:font-weight=\"bold\" fo:font-family=\"Sans\"/></style:style>";
+ QString colorText = "<span style=\"color: #00FF00; background-color: #FF0000;\"> Color Text </span>";
+ QTest::newRow("green/red") << colorText << 3 <<
+ "<style:style style:name=\"c4\" style:family=\"text\"><style:text-properties fo:font-family=\"Sans\" fo:color=\"#00ff00\" fo:background-color=\"#ff0000\"/></style:style>";
+
}
void tst_QTextOdfWriter::testWriteStyle1()