From 79a1ba61e4753758f66ba25b128aeff96ea716c9 Mon Sep 17 00:00:00 2001 From: Marcos Paulo de Souza Date: Mon, 28 Dec 2015 20:03:24 -0200 Subject: tdf#32062: Add test Change-Id: I0af72c436c2eca6741bfaa6e6570ce74f486c112 Reviewed-on: https://gerrit.libreoffice.org/20996 Tested-by: Jenkins Reviewed-by: Markus Mohrhard --- starmath/qa/cppunit/test_starmath.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'starmath/qa/cppunit') diff --git a/starmath/qa/cppunit/test_starmath.cxx b/starmath/qa/cppunit/test_starmath.cxx index 27e64d7fb3e5..91a14bd91a9f 100644 --- a/starmath/qa/cppunit/test_starmath.cxx +++ b/starmath/qa/cppunit/test_starmath.cxx @@ -45,12 +45,14 @@ public: void editMarker(); void editFailure(); + void replacePlaceholder(); void viewZoom(); CPPUNIT_TEST_SUITE(Test); CPPUNIT_TEST(editUndoRedo); CPPUNIT_TEST(editMarker); CPPUNIT_TEST(editFailure); + CPPUNIT_TEST(replacePlaceholder); CPPUNIT_TEST(viewZoom); CPPUNIT_TEST_SUITE_END(); @@ -221,6 +223,17 @@ void Test::editUndoRedo() } +void Test::replacePlaceholder() +{ + // Test the placeholder replacement. In this case, testing 'a + b', it + // should return '+a + b' when selecting '+' in ElementsDock + m_pEditWindow->SetText("a + b"); + m_pEditWindow->SelectAll(); + m_pEditWindow->InsertText("+"); + OUString sFinalText = m_pEditWindow->GetText(); + CPPUNIT_ASSERT_EQUAL_MESSAGE("Should be '+a + b'", OUString("+a + b"), sFinalText); +} + void Test::viewZoom() { sal_uInt16 nOrigZoom, nNextZoom, nFinalZoom; -- cgit fice-6-0 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/emfio
AgeCommit message (Expand)Author
2020-05-08compact namespace in editeng..extensionsNoel Grandin