diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-10-24 15:25:13 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-10-25 12:25:53 +0200 |
commit | 6c073a180b6af61963fcce0da63ba66b97357ccb (patch) | |
tree | e7a5d4d3bbfc3a20ffd0ad51f63c4ff79a7eea92 /sw/qa | |
parent | 5a8011372f4c8e849fa1e56246d793dcadffe3af (diff) |
tdf#139141: Add UNO commands for variable date/time fields
Impress already has both options in the menu
Also re-enable test disable with fa569930a0968cdeba4441e19a68e7d78aa25cb4
"Revert "Resolves tdf#139141 - Make variable date/time field the
default""
Change-Id: I1cec89b5901073555ffa31d2be24e1e62fbbdcb3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158391
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/uibase/shells/shells.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sw/qa/uibase/shells/shells.cxx b/sw/qa/uibase/shells/shells.cxx index 88f90e909698..8551ef685e1f 100644 --- a/sw/qa/uibase/shells/shells.cxx +++ b/sw/qa/uibase/shells/shells.cxx @@ -1049,9 +1049,7 @@ CPPUNIT_TEST_FIXTURE(SwUibaseShellsTest, testInsertTextFormFieldEndnote) // Then this was empty: the fieldmark was inserted before the note anchor, not in the note body. CPPUNIT_ASSERT_EQUAL(OUString("result"), aActual); } -/* -// Disabled because tdf#139141 was reverted and the default time field inserts a fix value again -// Should be reactivated once a new UNO command is added for variable time fields + CPPUNIT_TEST_FIXTURE(SwUibaseShellsTest, testUpdateSelectedField) { // Given an empty doc: @@ -1061,7 +1059,7 @@ CPPUNIT_TEST_FIXTURE(SwUibaseShellsTest, testUpdateSelectedField) SwPaM* pCursor = pDoc->GetEditShell()->GetCursor(); // Insert a time field and select it: - dispatchCommand(mxComponent, ".uno:InsertTimeField", {}); + dispatchCommand(mxComponent, ".uno:InsertTimeFieldVar", {}); pCursor->SetMark(); pCursor->Move(fnMoveBackward); @@ -1079,7 +1077,7 @@ CPPUNIT_TEST_FIXTURE(SwUibaseShellsTest, testUpdateSelectedField) // Check that the selected field has changed: CPPUNIT_ASSERT(aTimeFieldAfter != aTimeFieldBefore); } -*/ + CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |