From 68155a68578a0f4066c1c566c2d378bbae05c216 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Mon, 23 Jan 2017 21:30:11 +0100 Subject: tdf#105483: let's put lowercase Greek letter in italic and let uppercase one in non italic See comments from tdf#52225 in addition to initial description of this one + adapt QA tests associated (keep on to test "0" case) Change-Id: Ia84685fc5d336dd96b97d02c0e81f92e7966a6f1 Reviewed-on: https://gerrit.libreoffice.org/33480 Tested-by: Jenkins Reviewed-by: Takeshi Abe --- starmath/qa/cppunit/test_node.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'starmath/qa/cppunit') diff --git a/starmath/qa/cppunit/test_node.cxx b/starmath/qa/cppunit/test_node.cxx index fbeca91dbdc1..68396b78eb95 100644 --- a/starmath/qa/cppunit/test_node.cxx +++ b/starmath/qa/cppunit/test_node.cxx @@ -105,10 +105,10 @@ void NodeTest::testTdf52225() } while (false) SmFormat aFormat = mxDocShell->GetFormat(); - CPPUNIT_ASSERT_EQUAL(sal_Int16(0), aFormat.GetGreekCharStyle()); // default format + CPPUNIT_ASSERT_EQUAL(sal_Int16(2), aFormat.GetGreekCharStyle()); // default format = 2 CHECK_GREEK_SYMBOL("%ALPHA", 0x0391, false); CHECK_GREEK_SYMBOL("%iALPHA", 0x0391, true); - CHECK_GREEK_SYMBOL("%alpha", 0x03b1, false); + CHECK_GREEK_SYMBOL("%alpha", 0x03b1, true); CHECK_GREEK_SYMBOL("%ialpha", 0x03b1, true); // mode 1 @@ -119,12 +119,12 @@ void NodeTest::testTdf52225() CHECK_GREEK_SYMBOL("%beta", 0x03b2, true); CHECK_GREEK_SYMBOL("%ibeta", 0x03b2, true); - // mode 2 - aFormat.SetGreekCharStyle(2); + // mode 0 + aFormat.SetGreekCharStyle(0); mxDocShell->SetFormat(aFormat); CHECK_GREEK_SYMBOL("%GAMMA", 0x0393, false); CHECK_GREEK_SYMBOL("%iGAMMA", 0x0393, true); - CHECK_GREEK_SYMBOL("%gamma", 0x03b3, true); + CHECK_GREEK_SYMBOL("%gamma", 0x03b3, false); CHECK_GREEK_SYMBOL("%igamma", 0x03b3, true); #undef CHECK_GREEK_SYMBOL -- cgit