diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-03-16 13:07:21 +0530 |
---|---|---|
committer | pranavk <pranavk@collabora.co.uk> | 2017-03-16 11:12:40 +0000 |
commit | 055d8821e664446b7e66b73970a324f765e35f9c (patch) | |
tree | 28f2b3b1c76a216082215cf285dc7861a8b1cb1a /sc/qa | |
parent | 2237f08812f6075d529f4bee9d8bef94f653948a (diff) |
sc lok: Edit annotation by id
Change-Id: Iaea08b7a31fab1a8c9b8edc193754821c6608c53
Reviewed-on: https://gerrit.libreoffice.org/35249
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/unit/tiledrendering/tiledrendering.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/qa/unit/tiledrendering/tiledrendering.cxx b/sc/qa/unit/tiledrendering/tiledrendering.cxx index c25dc6681170..ac7de0e77f18 100644 --- a/sc/qa/unit/tiledrendering/tiledrendering.cxx +++ b/sc/qa/unit/tiledrendering/tiledrendering.cxx @@ -1082,8 +1082,14 @@ void ScTiledRenderingTest::testCommentCallback() CPPUNIT_ASSERT_EQUAL(std::string("0, 255, 1274, 254"), aView2.m_aCommentCallbackResult.get<std::string>("cellPos")); // Edit a comment + // Select some random cell, we should be able to edit the cell note without + // selecting the cell + ScTabViewShell* pTabViewShell = dynamic_cast<ScTabViewShell*>(SfxViewShell::Current()); + if (pTabViewShell) + pTabViewShell->SetCursor(3, 100); aArgs = comphelper::InitPropertySequence( { + {"Id", uno::makeAny(OUString("Sheet1.A2"))}, {"Text", uno::makeAny(OUString("Edited comment"))}, {"Author", uno::makeAny(OUString("LOK User2"))}, }); @@ -1103,7 +1109,6 @@ void ScTiledRenderingTest::testCommentCallback() CPPUNIT_ASSERT_EQUAL(std::string("0, 255, 1274, 254"), aView2.m_aCommentCallbackResult.get<std::string>("cellPos")); // Delete the comment - ScTabViewShell* pTabViewShell = dynamic_cast<ScTabViewShell*>(SfxViewShell::Current()); if (pTabViewShell) pTabViewShell->SetCursor(4, 43); aArgs = comphelper::InitPropertySequence( |