starmath/qa/cppunit/test_starmath.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+)
New commits: commit 79a1ba61e4753758f66ba25b128aeff96ea716c9 Author: Marcos Paulo de Souza <[email protected]> Date: Mon Dec 28 20:03:24 2015 -0200 tdf#32062: Add test Change-Id: I0af72c436c2eca6741bfaa6e6570ce74f486c112 Reviewed-on: https://gerrit.libreoffice.org/20996 Tested-by: Jenkins <[email protected]> Reviewed-by: Markus Mohrhard <[email protected]> diff --git a/starmath/qa/cppunit/test_starmath.cxx b/starmath/qa/cppunit/test_starmath.cxx index 27e64d7..91a14bd 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; _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
